ReactOS  0.4.13-dev-242-g611e6d7
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
12 extern "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 
24  _CRTIMP
25  void*
26  __cdecl
27  _memccpy(
29  _In_ const void *_Src,
30  _In_ int _Val,
31  _In_ size_t _MaxCount);
32 
35  void*
36  __cdecl
37  memchr(
38  _In_reads_bytes_opt_(_MaxCount) const void *_Buf,
39  _In_ int _Val,
40  _In_ size_t _MaxCount);
41 
43  _CRTIMP
44  int
45  __cdecl
46  _memicmp(
47  _In_reads_bytes_opt_(_Size) const void *_Buf1,
48  _In_reads_bytes_opt_(_Size) const void *_Buf2,
49  _In_ size_t _Size);
50 
52  _CRTIMP
53  int
54  __cdecl
55  _memicmp_l(
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
63  __cdecl
64  memcmp(
65  _In_reads_bytes_opt_(_Size) const void *_Buf1,
66  _In_reads_bytes_opt_(_Size) const void *_Buf2,
67  _In_ size_t _Size);
68 
69  _Post_equal_to_(_Dst)
70  _At_buffer_((unsigned char*)_Dst,
72  _MaxCount,
73  _Post_satisfies_(((unsigned char*)_Dst)[_Iter_] == ((unsigned char*)_Src)[_Iter_]))
75  void*
76  __cdecl
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,
85  _Size,
86  _Post_satisfies_(((unsigned char*)_Dst)[_Iter_] == _Val))
87  void*
88  __cdecl
89  memset(
90  _Out_writes_bytes_all_(_Size) void *_Dst,
91  _In_ int _Val,
92  _In_ size_t _Size);
93 
94 #ifndef NO_OLDNAMES
95 
96  _CRTIMP
97  void*
98  __cdecl
99  memccpy(
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
109  memicmp(
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 */
_Check_return_ _CONST_RETURN void *__cdecl memchr(_In_reads_bytes_opt_(_MaxCount) const void *_Buf, _In_ int _Val, _In_ size_t _MaxCount)
_In_ ULONG _Out_writes_bytes_all_(Length) PUCHAR Buffer
Definition: ntddpcm.h:100
#define __cdecl
Definition: accygwin.h:79
#define _CRTIMP
Definition: crtdefs.h:60
#define _In_reads_bytes_opt_(size)
Definition: no_sal2.h:230
_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)
_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 _Check_return_
Definition: no_sal2.h:13
#define _In_opt_
Definition: no_sal2.h:213
_CRTIMP void *__cdecl _memccpy(_Out_writes_bytes_opt_(_MaxCount) void *_Dst, _In_ const void *_Src, _In_ int _Val, _In_ size_t _MaxCount)
_Iter_
Definition: memory.h:71
_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 _Out_writes_bytes_opt_(a)
Definition: btrfs_drv.h:171
#define _At_buffer_(target, iter, bound, annos)
Definition: no_sal2.h:12
_In_reads_bytes_(_MaxCount) const void *_Src
_In_ size_t _In_z_ _Printf_format_string_ const char _In_ const struct tm _In_opt_ _locale_t _Locale
Definition: time.h:166
_MaxCount
Definition: memory.h:71
_Size
Definition: memory.h:84
_Post_equal_to_(_Dst) _At_buffer_((unsigned char *) _Dst
#define memcpy(s1, s2, n)
Definition: mkisofs.h:878
#define _In_
Definition: no_sal2.h:204
_In_ int _Val
Definition: memory.h:91
#define _CONST_RETURN
Definition: crtdefs.h:125
_Post_satisfies_(((unsigned char *) _Dst)[_Iter_]==((unsigned char *) _Src)[_Iter_])) void *__cdecl memcpy(_Out_writes_bytes_all_(_MaxCount) void *_Dst
_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)
_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)
#define memset(x, y, z)
Definition: compat.h:39
#define _CRT_INSECURE_DEPRECATE_MEMORY(_Replacement)
Definition: crtdefs.h:216