class BufferCollectionInfo
Defined at line 5696 of file fidling/gen/sdk/fidl/fuchsia.sysmem2/fuchsia.sysmem2/cpp/fidl/fuchsia.sysmem2/cpp/natural_types.h
Information about a buffer collection and its buffers.
Public Methods
void BufferCollectionInfo (Storage_ storage)
void BufferCollectionInfo ()
Defined at line 5701 of file fidling/gen/sdk/fidl/fuchsia.sysmem2/fuchsia.sysmem2/cpp/fidl/fuchsia.sysmem2/cpp/natural_types.h
void BufferCollectionInfo (BufferCollectionInfo && )
Defined at line 5702 of file fidling/gen/sdk/fidl/fuchsia.sysmem2/fuchsia.sysmem2/cpp/fidl/fuchsia.sysmem2/cpp/natural_types.h
bool IsEmpty ()
BufferCollectionInfo & operator= (BufferCollectionInfo && )
Defined at line 5703 of file fidling/gen/sdk/fidl/fuchsia.sysmem2/fuchsia.sysmem2/cpp/fidl/fuchsia.sysmem2/cpp/natural_types.h
const std::optional< ::fuchsia_sysmem2::SingleBufferSettings> & settings ()
These settings apply to all the buffers in the initial buffer
allocation.
This field will always be set by sysmem.
::std::optional< ::fuchsia_sysmem2::SingleBufferSettings> & settings ()
These settings apply to all the buffers in the initial buffer
allocation.
This field will always be set by sysmem.
BufferCollectionInfo & settings (std::optional< ::fuchsia_sysmem2::SingleBufferSettings> value)
These settings apply to all the buffers in the initial buffer
allocation.
This field will always be set by sysmem.
const std::optional< ::std::vector< ::fuchsia_sysmem2::VmoBuffer>> & buffers ()
VMO handles (and vmo_usable_start offset) for each buffer in the
collection.
The size of this vector is the buffer_count (buffer_count is not sent
separately).
All buffer VMO handles have identical size and access rights. The size
is in settings.buffer_settings.size_bytes.
The VMO access rights are determined based on the usages which the
client specified when allocating the buffer collection. For example, a
client which expressed a read-only usage will receive VMOs without write
rights. In addition, the rights can be attenuated by the parameter to
BufferCollectionToken.Duplicate() calls.
This field will always have VmoBuffer(s) in it, even if the participant
specifies usage whieh does not require VMO handles. This permits such a
participant to know the vmo_usable_start values, in case that's of any
use to the participant.
This field will always be set by sysmem, even if the participant doesn't
specify any buffer usage (but the [`fuchsia.sysmem2/VmoBuffer.vmo`]
sub-field within this field won't be set in that case).
::std::optional< ::std::vector< ::fuchsia_sysmem2::VmoBuffer>> & buffers ()
VMO handles (and vmo_usable_start offset) for each buffer in the
collection.
The size of this vector is the buffer_count (buffer_count is not sent
separately).
All buffer VMO handles have identical size and access rights. The size
is in settings.buffer_settings.size_bytes.
The VMO access rights are determined based on the usages which the
client specified when allocating the buffer collection. For example, a
client which expressed a read-only usage will receive VMOs without write
rights. In addition, the rights can be attenuated by the parameter to
BufferCollectionToken.Duplicate() calls.
This field will always have VmoBuffer(s) in it, even if the participant
specifies usage whieh does not require VMO handles. This permits such a
participant to know the vmo_usable_start values, in case that's of any
use to the participant.
This field will always be set by sysmem, even if the participant doesn't
specify any buffer usage (but the [`fuchsia.sysmem2/VmoBuffer.vmo`]
sub-field within this field won't be set in that case).
BufferCollectionInfo & buffers (std::optional< ::std::vector< ::fuchsia_sysmem2::VmoBuffer>> value)
VMO handles (and vmo_usable_start offset) for each buffer in the
collection.
The size of this vector is the buffer_count (buffer_count is not sent
separately).
All buffer VMO handles have identical size and access rights. The size
is in settings.buffer_settings.size_bytes.
The VMO access rights are determined based on the usages which the
client specified when allocating the buffer collection. For example, a
client which expressed a read-only usage will receive VMOs without write
rights. In addition, the rights can be attenuated by the parameter to
BufferCollectionToken.Duplicate() calls.
This field will always have VmoBuffer(s) in it, even if the participant
specifies usage whieh does not require VMO handles. This permits such a
participant to know the vmo_usable_start values, in case that's of any
use to the participant.
This field will always be set by sysmem, even if the participant doesn't
specify any buffer usage (but the [`fuchsia.sysmem2/VmoBuffer.vmo`]
sub-field within this field won't be set in that case).
const std::optional<uint64_t> & buffer_collection_id ()
This number is unique among all logical buffer collections per boot.
This ID number will be the same for all BufferCollectionToken(s),
BufferCollection(s), and BufferCollectionTokenGroup(s) associated with
the same logical buffer collection (derived from the same root token
created with fuchsia.sysmem2.Allocator.CreateSharedCollection, or with
CreateNonSharedCollection).
The same ID can be retrieved from a BufferCollectionToken,
BufferCollection, or BufferCollectionTokenGroup using
GetBufferCollectionId (at the cost of a round-trip to sysmem and back).
This field will always be set by sysmem.
::std::optional<uint64_t> & buffer_collection_id ()
This number is unique among all logical buffer collections per boot.
This ID number will be the same for all BufferCollectionToken(s),
BufferCollection(s), and BufferCollectionTokenGroup(s) associated with
the same logical buffer collection (derived from the same root token
created with fuchsia.sysmem2.Allocator.CreateSharedCollection, or with
CreateNonSharedCollection).
The same ID can be retrieved from a BufferCollectionToken,
BufferCollection, or BufferCollectionTokenGroup using
GetBufferCollectionId (at the cost of a round-trip to sysmem and back).
This field will always be set by sysmem.
BufferCollectionInfo & buffer_collection_id (std::optional<uint64_t> value)
This number is unique among all logical buffer collections per boot.
This ID number will be the same for all BufferCollectionToken(s),
BufferCollection(s), and BufferCollectionTokenGroup(s) associated with
the same logical buffer collection (derived from the same root token
created with fuchsia.sysmem2.Allocator.CreateSharedCollection, or with
CreateNonSharedCollection).
The same ID can be retrieved from a BufferCollectionToken,
BufferCollection, or BufferCollectionTokenGroup using
GetBufferCollectionId (at the cost of a round-trip to sysmem and back).
This field will always be set by sysmem.
void BufferCollectionInfo (::fidl::internal::DefaultConstructPossiblyInvalidObjectTag )
Friends
class MemberVisitor
class NaturalTableCodingTraits