Home About us GitHub Contact us Docs

FoxOS

Welcome to the FoxOS website!

memory::initialize_heap

Signature: void memory::initialize_heap(void* heap_address, size_t page_count)
Description: Initializes the heap

Parameters:

Return: void

memory::free

Signature: void memory::free(void* address)
Description: Frees a block of memory

Parameters:

Return: void

memory::malloc

Signature: void* memory::malloc(size_t size)
Description: Allocates a block of memory

Parameters:

Return: void*

memory::realloc

Signature: void* memory::realloc(void* ptr, size_t old_size, size_t size)
Description: Reallocates a block of memory

Parameters:

Return: void*

heap_segment_header_t::split

Signature: heap_segment_header_t* heap_segment_header_t::split(size_t split_length)
Description: Splits a heap segment header

Parameters:

Return: heap_segment_header_t*

memory::expand_heap

Signature: void memory::expand_heap(size_t length)
Description: Expands the heap

Parameters:

Return: void

heap_segment_header_t::combine_forward

Signature: void heap_segment_header_t::combine_forward()
Description: Combines a heap segment header forward

Return: void

heap_segment_header_t::combine_backward

Signature: void heap_segment_header_t::combine_backward()
Description: Combines a heap segment header backward

Return: void

new

Signature: void* operator new(size_t size)
Attributes: void*
Description: Allocates a block of memory

Parameters:

Return: operator

new[]

Signature: void* operator new[](size_t size)
Attributes: void*
Description: Allocates a block of memory

Parameters:

Return: operator

delete

Signature: void operator delete(void* p, unsigned long)
Attributes: void
Description: Frees a block of memory

Parameters:

Return: operator

delete[]

Signature: void operator delete[](void* p)
Attributes: void
Description: Frees a block of memory

Parameters:

Return: operator

Show file on GitHub