ReactOS 0.4.16-dev-973-g9a0ff8b
__crt_win32_buffer_internal_dynamic_resizing Struct Reference

#include <corecrt_internal_win32_buffer.h>

Public Types

using debug_info_type = __crt_win32_buffer_empty_debug_info
 

Static Public Member Functions

static _Check_return_ errno_t allocate (void **const address, size_t const size, debug_info_type const &)
 
static void deallocate (void *const ptr, debug_info_type const &)
 

Detailed Description

Definition at line 76 of file corecrt_internal_win32_buffer.h.

Member Typedef Documentation

◆ debug_info_type

Member Function Documentation

◆ allocate()

static _Check_return_ errno_t __crt_win32_buffer_internal_dynamic_resizing::allocate ( void **const  address,
size_t const  size,
debug_info_type const  
)
inlinestatic

Definition at line 81 of file corecrt_internal_win32_buffer.h.

82 {
83 void * const ret = _malloc_crt(size);
84 *address = ret;
85 if (ret == nullptr) {
86 return ENOMEM;
87 }
88 return 0;
89 }
#define ENOMEM
Definition: acclib.h:84
GLuint address
Definition: glext.h:9393
GLsizeiptr size
Definition: glext.h:5919
#define _malloc_crt
int ret

◆ deallocate()

static void __crt_win32_buffer_internal_dynamic_resizing::deallocate ( void *const  ptr,
debug_info_type const  
)
inlinestatic

Definition at line 91 of file corecrt_internal_win32_buffer.h.

92 {
94 }
#define _free_crt
static PVOID ptr
Definition: dispmode.c:27

The documentation for this struct was generated from the following file: