class FormatCosts

Defined at line 11358 of file fidling/gen/sdk/fidl/fuchsia.sysmem2/fuchsia.sysmem2/hlcpp/fuchsia/sysmem2/cpp/fidl.h

This is the root of the persistent fidl in a format costs file. The format

costs files are read by the assembly tool and merged into the single

sysmem_config.persistent_fidl file in the sysmem domain config (see Config

above).

Normally json[5] would be preferable for config, but we generate this config

in rust using FIDL types (to avoid repetition and to take advantage of FIDL

rust codegen), and there's no json schema for FIDL types.

While the resulting sysmem_config.persistent_fidl is a single file that can

contain multiple aspects of sysmem config, in contrast a format costs file

contains only format costs. We don't mind having more separate files during

the build, but it's nice to get sysmem's domain config down to a single file

on-device.

Public Members

static const fidl_type_t * FidlType

Public Methods

bool IsEmpty ()

Returns whether no field is set.

const ::std::vector< ::fuchsia::sysmem2::FormatCostEntry> & format_costs ()

This is a chunk of entries that'll end up in

['fuchsia.sysmem2.Config.format_costs'] (see above) unless overriden by

later entries (either in this same vector or in later-processed files

during aggregation by the assembly tool).

Defined at line 11368 of file fidling/gen/sdk/fidl/fuchsia.sysmem2/fuchsia.sysmem2/hlcpp/fuchsia/sysmem2/cpp/fidl.h

bool has_format_costs ()

Defined at line 11372 of file fidling/gen/sdk/fidl/fuchsia.sysmem2/fuchsia.sysmem2/hlcpp/fuchsia/sysmem2/cpp/fidl.h

::std::vector< ::fuchsia::sysmem2::FormatCostEntry> * mutable_format_costs ()

This is a chunk of entries that'll end up in

['fuchsia.sysmem2.Config.format_costs'] (see above) unless overriden by

later entries (either in this same vector or in later-processed files

during aggregation by the assembly tool).

Defined at line 11380 of file fidling/gen/sdk/fidl/fuchsia.sysmem2/fuchsia.sysmem2/hlcpp/fuchsia/sysmem2/cpp/fidl.h

void clear_format_costs ()

Defined at line 11388 of file fidling/gen/sdk/fidl/fuchsia.sysmem2/fuchsia.sysmem2/hlcpp/fuchsia/sysmem2/cpp/fidl.h

FormatCosts & set_format_costs (::std::vector< ::fuchsia::sysmem2::FormatCostEntry> _value)
void FormatCosts ()
void FormatCosts (FormatCosts && other)
void ~FormatCosts ()
FormatCosts & operator= (FormatCosts && other)
::std::unique_ptr<FormatCosts> New ()
void Encode (::fidl::Encoder * _encoder, size_t _offset, std::optional< ::fidl::HandleInformation> maybe_handle_info)
void Decode (::fidl::Decoder * _decoder, FormatCosts * _value, size_t _offset)
zx_status_t Clone (FormatCosts * _result)