Skip to content

sokol.memory #

fn salloc #

fn salloc(size usize, user_data voidptr) voidptr

salloc - used in the allocator structs, that the SOKOL libraries use, for allocating new memory blocks

fn sfree #

fn sfree(ptr voidptr, user_data voidptr)

sfree - used in the allocator structs, that the SOKOL libraries use, for freeing memory

fn slog #

fn slog(const_tag &char, log_level u32, log_item_id u32, const_message_or_null &char, line_nr u32, const_filename_or_null &char, user_data voidptr)

type FnAllocatorAlloc #

type FnAllocatorAlloc = fn (size usize, user_data voidptr) voidptr

type FnAllocatorFree #

type FnAllocatorFree = fn (ptr voidptr, user_data voidptr)

type FnLogCb #

type FnLogCb = fn (const_tag &char, log_level u32, log_item_id u32, const_message_or_null &char, line_nr u32, const_filename_or_null &char, user_data voidptr)