11 #pragma warning (disable : 4565)
13 #ifndef _LIBC_POOL_TAG
14 #define _LIBC_POOL_TAG 'colM'
22 #pragma warning (disable : 4200)
41 size_t number_of_bytes = 0;
47 NonPagedPoolNxCacheAligned,
51 if (
nullptr == pBlock)
62 __bcount_opt(
size *
n)
66 size_t total =
n *
size;
88 std::unique_ptr<unsigned char>
inblock = std::unique_ptr<unsigned char>(
static_cast<unsigned char*
>(ptr));
104 __inout_opt __drv_freesMem(Mem)
void* ptr
118 __cdecl
operator new(
127 __cdecl
operator delete(
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags static arg static fd static protocol static who struct sockaddr static addrlen static backlog struct timeval struct timezone static tz const struct iovec static count static mode const void const struct sockaddr static tolen const char static pathname void count
RZ_API void Ht_() free(HtName_(Ht) *ht)
return memset(p, 0, total)
int __cdecl vsnprintf(char *buffer, size_t count, const char *format, va_list argptr)
EXTERN_C __drv_when(return!=0, __drv_allocatesMem(pBlock)) __checkReturn __drv_maxIRQL(DISPATCH_LEVEL) __bcount_opt(size) void *__cdecl malloc(__in size_t size)
std::unique_ptr< unsigned char > inblock
EXTERN_C __drv_maxIRQL(DISPATCH_LEVEL) void __cdecl free(__inout_opt __drv_freesMem(Mem) void *ptr)
memcpy(mem, inblock.get(), min(CONTAINING_RECORD(inblock.get(), MEMBLOCK, data) ->size, size))
void * realloc(void *ptr, size_t size)
void * malloc(size_t size)
void * calloc(size_t number, size_t size)
__declspec(align(MEMORY_ALLOCATION_ALIGNMENT)) char data[0]
#define NT_SUCCESS(status)