GLib.Slice
Description:
Content:
Functions:
- public void* alloc (size_t block_size)
Allocates a block of memory from the libc allocator.
- public void* alloc0 (size_t block_size)
Allocates a block of memory via alloc and initializes the returned memory to 0.
- public void* copy (size_t block_size, void* mem_block)
Allocates a block of memory from the slice allocator and copies
block_size
bytes into it frommem_block
. - public void free (size_t block_size, void* mem_block)
Frees a block of memory.
- public void free_chain_with_offset (size_t block_size, void* mem_chain, size_t next_offset)
Frees a linked list of memory blocks of structure type
type
. - public int64 get_config (SliceConfig ckey)
- public int64[] get_config_state (SliceConfig ckey, int64 address)
- public void set_config (SliceConfig ckey, int64 value)