class MemoryResource

Defined at line 21 of file ../../sdk/lib/fidl/cpp/wire/include/lib/fidl/cpp/wire/message_storage.h

Public Methods

uint8_t * Allocate (uint32_t num_bytes)

Allocates a |num_bytes| sized buffer, aligned to |FIDL_ALIGNMENT|.

If the buffer resource cannot satisfy the allocation, it should return

nullptr, and preserve its original state before the allocation.

|num_bytes| represents the size of the allocation request.

void MemoryResource ()

Defined at line 23 of file ../../sdk/lib/fidl/cpp/wire/include/lib/fidl/cpp/wire/message_storage.h

void ~MemoryResource ()

Defined at line 24 of file ../../sdk/lib/fidl/cpp/wire/include/lib/fidl/cpp/wire/message_storage.h