template <>

class WireSyncClientImpl

Defined at line 2432 of file fidling/gen/sdk/fidl/fuchsia.boot/fuchsia.boot/cpp/fidl/fuchsia.boot/cpp/wire_messaging.h

Methods to make a sync FIDL call directly on an unowned handle or a

const reference to a |::fidl::ClientEnd

<

::fuchsia_boot::Items>|,

avoiding setting up a client.

Public Methods

::fidl::WireResult< ::fuchsia_boot::Items::Get> Get (uint32_t type, uint32_t extra)

Get a `payload` for a boot item of `type` and `extra`.

NOTE: We return the `length` of the item, as VMOs must be page-aligned.

TODO: Refactor API: https://fxbug.dev/42109921

For a list of `type`s, refer to

<lib

/zbi-format/zbi.h>.

For a list of `extra`s, refer to

<lib

/zbi-format/driver-config.h>.

Allocates 48 bytes of message buffer on the stack. No heap allocation necessary.

::fidl::WireResult< ::fuchsia_boot::Items::Get2> Get2 (uint32_t type, ::fidl::ObjectView< ::fuchsia_boot::wire::Extra> extra)

Get all stored items of `type`, optionally also restricted by `extra`. Note that

length is returned for each item as VMOs are page-aligned.

Returns ZX_ERR_NOT_SUPPORTED if this is an untracked item which will never be stored.

Allocates 40 bytes of request buffer on the stack. Response is heap-allocated.

::fidl::WireResult< ::fuchsia_boot::Items::GetBootloaderFile> GetBootloaderFile (::fidl::StringView filename)

Gets the `payload` for a `ZBI_TYPE_BOOTLOADER_FILE` boot item.

Note: ZX_PROP_VMO_CONTENT_SIZE will be set to the actual file content size

Allocates 312 bytes of message buffer on the stack. No heap allocation necessary.