fdf::Arena

Summary

Inheritance

Inherits from: fidl::AnyArena

Constructors and Destructors

Arena(fdf_arena_t *arena)
Arena(fdf_arena_tag_t tag)
Arena(const Arena & to_copy)
Arena(Arena && other)
~Arena()

Public functions

Allocate(size_t bytes) const
void *
Allocate(size_t item_size, size_t count, void(*)(uint8_t *data, size_t count) destructor_function) override
virtual uint8_t *
Contains(const T *ptr) const
bool
Free(void *ptr)
void
close()
void
get() const
fdf_arena_t *
operator=(const Arena & other)=delete
Arena &
operator=(Arena && other) noexcept
Arena &
release()
fdf_arena_t *
reset(fdf_arena_t *arena)
void

Public static functions

Create(uint32_t options, fdf_arena_tag_t tag)

Public functions

Allocate

void * Allocate(
  size_t bytes
) const 

Allocate

virtual uint8_t * Allocate(
  size_t item_size,
  size_t count,
  void(*)(uint8_t *data, size_t count) destructor_function
) override

Arena

 Arena(
  fdf_arena_t *arena
)

Arena

 Arena(
  fdf_arena_tag_t tag
)

Arena

 Arena(
  const Arena & to_copy
)=delete

Arena

 Arena(
  Arena && other
) noexcept

Contains

bool Contains(
  const T *ptr
) const 

Free

void Free(
  void *ptr
)

close

void close()

get

fdf_arena_t * get() const 

operator=

Arena & operator=(
  const Arena & other
)=delete

operator=

Arena & operator=(
  Arena && other
) noexcept

release

fdf_arena_t * release()

reset

void reset(
  fdf_arena_t *arena
)

~Arena

 ~Arena()

Public static functions

Create

zx::result< Arena > Create(
  uint32_t options,
  fdf_arena_tag_t tag
)