MemorySlice

Undocumented in source.

Members

Functions

dup
T* dup(T* memBlock)
Undocumented in source. Be warned that the author may not have intended to support it.
free
void free(T* memBlock)
Undocumented in source. Be warned that the author may not have intended to support it.
mewSlice
T* mewSlice()
Undocumented in source. Be warned that the author may not have intended to support it.
mewSlice0
T* mewSlice0()
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

sliceAlloc
void* sliceAlloc(size_t blockSize)

Allocates a block of memory from the slice allocator. The block adress handed out can be expected to be aligned to at least 1 * sizeof (void*), though in general slices are 2 * sizeof (void*) bytes aligned, if a malloc() fallback implementation is used instead, the alignment may be reduced in a libc dependent fashion. Note that the underlying slice allocation mechanism can be changed with the [G_SLICE=always-malloc]G_SLICE environment variable.

sliceAlloc0
void* sliceAlloc0(size_t blockSize)

Allocates a block of memory via g_slice_alloc() and initializes the returned memory to 0. Note that the underlying slice allocation mechanism can be changed with the [G_SLICE=always-malloc]G_SLICE environment variable.

sliceCopy
void* sliceCopy(size_t blockSize, void* memBlock)

Allocates a block of memory from the slice allocator and copies @block_size bytes into it from @mem_block.

sliceFree1
void sliceFree1(size_t blockSize, void* memBlock)

Frees a block of memory.

sliceFreeChainWithOffset
void sliceFreeChainWithOffset(size_t blockSize, void* memChain, size_t nextOffset)

Frees a linked list of memory blocks of structure type @type.

sliceGetConfig
long sliceGetConfig(GSliceConfig ckey)
Undocumented in source. Be warned that the author may not have intended to support it.
sliceGetConfigState
long* sliceGetConfigState(GSliceConfig ckey, long address, uint* nValues)
Undocumented in source. Be warned that the author may not have intended to support it.
sliceSetConfig
void sliceSetConfig(GSliceConfig ckey, long value)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta