template <typename BuilderImpl>

class WireTableBaseBuilder

Defined at line 352 of file fidling/gen/sdk/fidl/fuchsia.fonts/fuchsia.fonts/cpp/fidl/fuchsia.fonts/cpp/wire_types.h

Public Methods

::fuchsia_fonts::wire::TypefaceResponse Build ()

Build and return the table. The builder should not be used after this.

bool has_buffer ()
void clear_buffer ()

Clears the buffer field.

This method should be used sparingly, such as only during tests, as it has

O(number_of_fields) complexity.

::fuchsia_mem::wire::Buffer & buffer ()

A memory buffer containing the bytes of a digital font file.

It is the client's responsibility to identify the type of file and to parse it (usually by

delegating to FreeType or a similar library).

BuilderImpl & buffer (Wrapper_Ignore_Me_< ::fidl::ObjectView< ::fuchsia_mem::wire::Buffer>> elem)

A memory buffer containing the bytes of a digital font file.

It is the client's responsibility to identify the type of file and to parse it (usually by

delegating to FreeType or a similar library).

bool has_buffer_id ()
void clear_buffer_id ()

Clears the buffer_id field.

This method should be used sparingly, such as only during tests, as it has

O(number_of_fields) complexity.

uint32_t & buffer_id ()

Identifier for the buffer. Responses with the same `buffer_id` are guaranteed to contain the

same data in the buffer. Clients may use this value to detect if they already have the font

cached in parsed form.

BuilderImpl & buffer_id (uint32_t elem)

Identifier for the buffer. Responses with the same `buffer_id` are guaranteed to contain the

same data in the buffer. Clients may use this value to detect if they already have the font

cached in parsed form.

bool has_font_index ()
void clear_font_index ()

Clears the font_index field.

This method should be used sparingly, such as only during tests, as it has

O(number_of_fields) complexity.

uint32_t & font_index ()

Index of the returned typeface within `buffer`. Used for digital font formats that may

contain more than one typeface per file, e.g. TTC (TrueType Collection).

BuilderImpl & font_index (uint32_t elem)

Index of the returned typeface within `buffer`. Used for digital font formats that may

contain more than one typeface per file, e.g. TTC (TrueType Collection).

Protected Methods

void WireTableBaseBuilder< ::fuchsia_fonts::wire::TypefaceResponse, BuilderImpl> (::fidl::ObjectView< ::fidl::WireTableFrame< ::fuchsia_fonts::wire::TypefaceResponse>> && frame)

Records