ReactOS 0.4.16-dev-112-g52265ae
memory.h
Go to the documentation of this file.
1
6#ifndef _INC_MEMORY
7#define _INC_MEMORY
8
9#include <crtdefs.h>
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
15#ifndef _CONST_RETURN
16#define _CONST_RETURN
17#endif
18
19#define _WConst_return _CONST_RETURN
20
21#ifndef _CRT_MEMORY_DEFINED
22#define _CRT_MEMORY_DEFINED
23
25 void*
29 _In_ const void *_Src,
30 _In_ int _Val,
31 _In_ size_t _MaxCount);
32
35 void*
38 _In_reads_bytes_opt_(_MaxCount) const void *_Buf,
39 _In_ int _Val,
40 _In_ size_t _MaxCount);
41
44 int
47 _In_reads_bytes_opt_(_Size) const void *_Buf1,
48 _In_reads_bytes_opt_(_Size) const void *_Buf2,
49 _In_ size_t _Size);
50
53 int
56 _In_reads_bytes_opt_(_Size) const void *_Buf1,
57 _In_reads_bytes_opt_(_Size) const void *_Buf2,
58 _In_ size_t _Size,
60
62 int
65 _In_reads_bytes_opt_(_Size) const void *_Buf1,
66 _In_reads_bytes_opt_(_Size) const void *_Buf2,
67 _In_ size_t _Size);
68
70 _At_buffer_((unsigned char*)_Dst,
73 _Post_satisfies_(((unsigned char*)_Dst)[_Iter_] == ((unsigned char*)_Src)[_Iter_]))
75 void*
77 memcpy(
79 _In_reads_bytes_(_MaxCount) const void *_Src,
80 _In_ size_t _MaxCount);
81
82 _Post_equal_to_(_Dst)
83 _At_buffer_((unsigned char*)_Dst,
84 _Iter_,
86 _Post_satisfies_(((unsigned char*)_Dst)[_Iter_] == _Val))
87 void*
89 memset(
90 _Out_writes_bytes_all_(_Size) void *_Dst,
92 _In_ size_t _Size);
93
94#ifndef NO_OLDNAMES
95
97 void*
100 _Out_writes_bytes_opt_(_Size) void *_Dst,
101 _In_reads_bytes_opt_(_Size) const void *_Src,
102 _In_ int _Val,
103 _In_ size_t _Size);
104
106 _CRTIMP
107 int
108 __cdecl
110 _In_reads_bytes_opt_(_Size) const void *_Buf1,
111 _In_reads_bytes_opt_(_Size) const void *_Buf2,
112 _In_ size_t _Size);
113
114#endif /* NO_OLDNAMES */
115
116#endif /* _CRT_MEMORY_DEFINED */
117
118#ifdef __cplusplus
119}
120#endif
121
122#endif /* _INC_MEMORY */
#define __cdecl
Definition: accygwin.h:79
#define _CRT_INSECURE_DEPRECATE_MEMORY(_Replacement)
Definition: crtdefs.h:237
#define _CRTIMP
Definition: crtdefs.h:72
#define memcpy(s1, s2, n)
Definition: mkisofs.h:878
#define memchr(s, c, n)
Definition: mkisofs.h:875
#define _In_reads_bytes_(size)
Definition: ms_sal.h:321
#define _Out_writes_bytes_all_(size)
Definition: ms_sal.h:362
#define _Check_return_
Definition: ms_sal.h:557
#define _Post_equal_to_(expr)
Definition: ms_sal.h:578
#define _In_
Definition: ms_sal.h:308
#define _In_reads_bytes_opt_(size)
Definition: ms_sal.h:322
#define _At_buffer_(target, iter, bound, annos)
Definition: ms_sal.h:250
#define _In_opt_
Definition: ms_sal.h:309
#define _Post_satisfies_(cond)
Definition: ms_sal.h:588
#define _Out_writes_bytes_opt_(size)
Definition: ms_sal.h:351
_Check_return_ _CRTIMP int __cdecl memicmp(_In_reads_bytes_opt_(_Size) const void *_Buf1, _In_reads_bytes_opt_(_Size) const void *_Buf2, _In_ size_t _Size)
_MaxCount
Definition: memory.h:72
_CRTIMP void *__cdecl memccpy(_Out_writes_bytes_opt_(_Size) void *_Dst, _In_reads_bytes_opt_(_Size) const void *_Src, _In_ int _Val, _In_ size_t _Size)
_In_ int _Val
Definition: memory.h:91
_Check_return_ _CRTIMP int __cdecl _memicmp(_In_reads_bytes_opt_(_Size) const void *_Buf1, _In_reads_bytes_opt_(_Size) const void *_Buf2, _In_ size_t _Size)
#define _CONST_RETURN
Definition: memory.h:16
_Size
Definition: memory.h:85
_Check_return_ int __cdecl memcmp(_In_reads_bytes_opt_(_Size) const void *_Buf1, _In_reads_bytes_opt_(_Size) const void *_Buf2, _In_ size_t _Size)
_Iter_
Definition: memory.h:71
_CRTIMP void *__cdecl _memccpy(_Out_writes_bytes_opt_(_MaxCount) void *_Dst, _In_ const void *_Src, _In_ int _Val, _In_ size_t _MaxCount)
_Check_return_ _CRTIMP int __cdecl _memicmp_l(_In_reads_bytes_opt_(_Size) const void *_Buf1, _In_reads_bytes_opt_(_Size) const void *_Buf2, _In_ size_t _Size, _In_opt_ _locale_t _Locale)
_In_ size_t _In_z_ _Printf_format_string_ const char _In_ const struct tm _In_opt_ _locale_t _Locale
Definition: time.h:159
#define memset(x, y, z)
Definition: compat.h:39