pymem.h File Reference

Classes

struct  PyMemAllocatorEx
 

Enumerations

enum  PyMemAllocatorDomain {
  PYMEM_DOMAIN_RAW ,
  PYMEM_DOMAIN_MEM ,
  PYMEM_DOMAIN_OBJ
}
 
enum  PyMemAllocatorName {
  PYMEM_ALLOCATOR_NOT_SET ,
  PYMEM_ALLOCATOR_DEFAULT ,
  PYMEM_ALLOCATOR_DEBUG ,
  PYMEM_ALLOCATOR_MALLOC ,
  PYMEM_ALLOCATOR_MALLOC_DEBUG
}
 

Functions

 PyAPI_FUNC (void *) PyMem_RawMalloc(size_t size)
 
 PyAPI_FUNC (void) PyMem_RawFree(void *ptr)
 
 PyAPI_FUNC (const char *) _PyMem_GetCurrentAllocatorName(void)
 
 PyAPI_FUNC (char *) _PyMem_RawStrdup(const char *str)
 
 PyAPI_FUNC (wchar_t *) _PyMem_RawWcsdup(const wchar_t *str)
 

Variables

size_t elsize
 
size_t new_size
 
PyMemAllocatorExallocator
 

Enumeration Type Documentation

◆ PyMemAllocatorDomain

Enumerator
PYMEM_DOMAIN_RAW 
PYMEM_DOMAIN_MEM 
PYMEM_DOMAIN_OBJ 

◆ PyMemAllocatorName

Enumerator
PYMEM_ALLOCATOR_NOT_SET 
PYMEM_ALLOCATOR_DEFAULT 
PYMEM_ALLOCATOR_DEBUG 
PYMEM_ALLOCATOR_MALLOC 
PYMEM_ALLOCATOR_MALLOC_DEBUG 

Function Documentation

◆ PyAPI_FUNC() [1/5]

PyAPI_FUNC ( void *  )

◆ PyAPI_FUNC() [2/5]

PyAPI_FUNC ( void  )

◆ PyAPI_FUNC() [3/5]

PyAPI_FUNC ( const char *  )

◆ PyAPI_FUNC() [4/5]

PyAPI_FUNC ( char *  ) const

◆ PyAPI_FUNC() [5/5]

PyAPI_FUNC ( wchar_t *  ) const

Variable Documentation

◆ elsize

size_t elsize

◆ new_size

size_t new_size

◆ allocator

PyMemAllocatorEx * allocator