struct DefaultAllocatorTraits

Defined at line 28 of file ../../zircon/system/ulib/fbl/include/fbl/vector.h

Public Methods

void * Allocate (size_t size)

Allocate receives a request for "size" contiguous bytes.

size will always be greater than zero.

The return value must be "nullptr" on error, or a non-null

pointer on success. This same pointer may later be passed

to deallocate when resizing.

Defined at line 34 of file ../../zircon/system/ulib/fbl/include/fbl/vector.h

void * Allocate (size_t size)

Allocate receives a request for "size" contiguous bytes.

size will always be greater than zero.

The return value must be "nullptr" on error, or a non-null

pointer on success. This same pointer may later be passed

to deallocate when resizing.

Defined at line 34 of file ../../zircon/system/ulib/fbl/include/fbl/vector.h

void * Allocate (size_t size)

Allocate receives a request for "size" contiguous bytes.

size will always be greater than zero.

The return value must be "nullptr" on error, or a non-null

pointer on success. This same pointer may later be passed

to deallocate when resizing.

Defined at line 34 of file ../../zircon/system/ulib/fbl/include/fbl/vector.h

void Deallocate (void * object)

Deallocate receives a pointer to an object which is

1) Either a pointer provided by Allocate, or

2) nullptr.

If the pointer is not null, deallocate must free

the underlying memory used by the object.

Defined at line 46 of file ../../zircon/system/ulib/fbl/include/fbl/vector.h