class BufferMemoryConstraints

Defined at line 1702 of file fidling/gen/sdk/fidl/fuchsia.sysmem/fuchsia.sysmem/cpp/fidl/fuchsia.sysmem/cpp/natural_types.h

This type is deprecated for new code, but is still used by some camera code.

Public Methods

void BufferMemoryConstraints (Storage_ storage)
void BufferMemoryConstraints (uint32_t min_size_bytes, uint32_t max_size_bytes, bool physically_contiguous_required, bool secure_required, bool ram_domain_supported, bool cpu_domain_supported, bool inaccessible_domain_supported, uint32_t heap_permitted_count, ::std::array< ::fuchsia_sysmem::HeapType, 32> heap_permitted)
void BufferMemoryConstraints ()

Default constructs a |BufferMemoryConstraints| only if all of its members are default constructible.

Defined at line 1712 of file fidling/gen/sdk/fidl/fuchsia.sysmem/fuchsia.sysmem/cpp/fidl/fuchsia.sysmem/cpp/natural_types.h

void BufferMemoryConstraints (BufferMemoryConstraints && )

Defined at line 1715 of file fidling/gen/sdk/fidl/fuchsia.sysmem/fuchsia.sysmem/cpp/fidl/fuchsia.sysmem/cpp/natural_types.h

void BufferMemoryConstraints (const BufferMemoryConstraints & other)
BufferMemoryConstraints & operator= (BufferMemoryConstraints && )

Defined at line 1716 of file fidling/gen/sdk/fidl/fuchsia.sysmem/fuchsia.sysmem/cpp/fidl/fuchsia.sysmem/cpp/natural_types.h

BufferMemoryConstraints & operator= (const BufferMemoryConstraints & other)
bool operator== (const BufferMemoryConstraints & other)
bool operator!= (const BufferMemoryConstraints & other)
uint32_t min_size_bytes ()
uint32_t & min_size_bytes ()
BufferMemoryConstraints & min_size_bytes (uint32_t value)

Setter for min_size_bytes.

uint32_t max_size_bytes ()

0 is treated as 0xFFFFFFFF.

uint32_t & max_size_bytes ()

0 is treated as 0xFFFFFFFF.

BufferMemoryConstraints & max_size_bytes (uint32_t value)

0 is treated as 0xFFFFFFFF.

bool physically_contiguous_required ()
bool & physically_contiguous_required ()
BufferMemoryConstraints & physically_contiguous_required (bool value)

Setter for physically_contiguous_required.

bool secure_required ()

If true, at least one participant requires secure memory.

When aggregating BufferCollectionConstraints, these values boolean-OR.

bool & secure_required ()

If true, at least one participant requires secure memory.

When aggregating BufferCollectionConstraints, these values boolean-OR.

BufferMemoryConstraints & secure_required (bool value)

If true, at least one participant requires secure memory.

When aggregating BufferCollectionConstraints, these values boolean-OR.

bool ram_domain_supported ()

By default, participants must ensure the CPU can read or write data to

the buffer without cache operations. If they support using the RAM

domain, data must be available in RAM (with CPU cache state such that

the RAM data won't get corrupted by a dirty CPU cache line writing

incorrect data to RAM), and a consumer reading using the CPU must

invalidate CPU cache before reading (the producer doesn't guarantee

zero stale "clean" cache lines)

bool & ram_domain_supported ()

By default, participants must ensure the CPU can read or write data to

the buffer without cache operations. If they support using the RAM

domain, data must be available in RAM (with CPU cache state such that

the RAM data won't get corrupted by a dirty CPU cache line writing

incorrect data to RAM), and a consumer reading using the CPU must

invalidate CPU cache before reading (the producer doesn't guarantee

zero stale "clean" cache lines)

BufferMemoryConstraints & ram_domain_supported (bool value)

By default, participants must ensure the CPU can read or write data to

the buffer without cache operations. If they support using the RAM

domain, data must be available in RAM (with CPU cache state such that

the RAM data won't get corrupted by a dirty CPU cache line writing

incorrect data to RAM), and a consumer reading using the CPU must

invalidate CPU cache before reading (the producer doesn't guarantee

zero stale "clean" cache lines)

bool cpu_domain_supported ()
bool & cpu_domain_supported ()
BufferMemoryConstraints & cpu_domain_supported (bool value)

Setter for cpu_domain_supported.

bool inaccessible_domain_supported ()
bool & inaccessible_domain_supported ()
BufferMemoryConstraints & inaccessible_domain_supported (bool value)

Setter for inaccessible_domain_supported.

uint32_t heap_permitted_count ()

Optional heap constraints. Participants that don't care which heap

memory is allocated on should leave this field 0.

uint32_t & heap_permitted_count ()

Optional heap constraints. Participants that don't care which heap

memory is allocated on should leave this field 0.

BufferMemoryConstraints & heap_permitted_count (uint32_t value)

Optional heap constraints. Participants that don't care which heap

memory is allocated on should leave this field 0.

const ::std::array< ::fuchsia_sysmem::HeapType, 32> & heap_permitted ()
::std::array< ::fuchsia_sysmem::HeapType, 32> & heap_permitted ()
BufferMemoryConstraints & heap_permitted (::std::array< ::fuchsia_sysmem::HeapType, 32> value)

Setter for heap_permitted.

void BufferMemoryConstraints (::fidl::internal::DefaultConstructPossiblyInvalidObjectTag )

Friends

class MemberVisitor
class NaturalStructCodingTraits