blob: 5e61559732d4dceabdcc5e2e5e214e4fb804cc62 [file] [log] [blame]
// WARNING: This file is machine generated by fidlgen.
#pragma once
#include <lib/fidl/internal.h>
#include <lib/fidl/txn_header.h>
#include <lib/fidl/llcpp/array.h>
#include <lib/fidl/llcpp/coding.h>
#include <lib/fidl/llcpp/connect_service.h>
#include <lib/fidl/llcpp/service_handler_interface.h>
#include <lib/fidl/llcpp/string_view.h>
#include <lib/fidl/llcpp/sync_call.h>
#include <lib/fidl/llcpp/traits.h>
#include <lib/fidl/llcpp/transaction.h>
#include <lib/fidl/llcpp/vector_view.h>
#include <lib/fit/function.h>
#include <lib/zx/channel.h>
#include <lib/zx/fifo.h>
#include <lib/zx/vmo.h>
#include <zircon/fidl.h>
#include <fuchsia/hardware/block/llcpp/fidl.h>
namespace llcpp {
namespace fuchsia {
namespace hardware {
namespace block {
namespace partition {
class Partition;
struct GUID;
extern "C" const fidl_type_t v1_fuchsia_hardware_block_partition_PartitionGetInfoRequestTable;
extern "C" const fidl_type_t v1_fuchsia_hardware_block_partition_PartitionGetInfoResponseTable;
extern "C" const fidl_type_t v1_fuchsia_hardware_block_partition_PartitionGetStatsRequestTable;
extern "C" const fidl_type_t v1_fuchsia_hardware_block_partition_PartitionGetStatsResponseTable;
extern "C" const fidl_type_t v1_fuchsia_hardware_block_partition_PartitionGetFifoRequestTable;
extern "C" const fidl_type_t v1_fuchsia_hardware_block_partition_PartitionGetFifoResponseTable;
extern "C" const fidl_type_t v1_fuchsia_hardware_block_partition_PartitionAttachVmoRequestTable;
extern "C" const fidl_type_t v1_fuchsia_hardware_block_partition_PartitionAttachVmoResponseTable;
extern "C" const fidl_type_t v1_fuchsia_hardware_block_partition_PartitionCloseFifoRequestTable;
extern "C" const fidl_type_t v1_fuchsia_hardware_block_partition_PartitionCloseFifoResponseTable;
extern "C" const fidl_type_t v1_fuchsia_hardware_block_partition_PartitionRebindDeviceRequestTable;
extern "C" const fidl_type_t v1_fuchsia_hardware_block_partition_PartitionRebindDeviceResponseTable;
extern "C" const fidl_type_t v1_fuchsia_hardware_block_partition_PartitionGetTypeGuidRequestTable;
extern "C" const fidl_type_t v1_fuchsia_hardware_block_partition_PartitionGetTypeGuidResponseTable;
extern "C" const fidl_type_t v1_fuchsia_hardware_block_partition_PartitionGetInstanceGuidRequestTable;
extern "C" const fidl_type_t v1_fuchsia_hardware_block_partition_PartitionGetInstanceGuidResponseTable;
extern "C" const fidl_type_t v1_fuchsia_hardware_block_partition_PartitionGetNameRequestTable;
extern "C" const fidl_type_t v1_fuchsia_hardware_block_partition_PartitionGetNameResponseTable;
class Partition final {
Partition() = delete;
public:
struct GetInfoResponse final {
FIDL_ALIGNDECL
fidl_message_header_t _hdr;
int32_t status;
::llcpp::fuchsia::hardware::block::BlockInfo* info;
static constexpr const fidl_type_t* Type = &v1_fuchsia_hardware_block_partition_PartitionGetInfoResponseTable;
static constexpr uint32_t MaxNumHandles = 0;
static constexpr uint32_t PrimarySize = 32;
static constexpr uint32_t MaxOutOfLine = 24;
static constexpr bool HasFlexibleEnvelope = false;
static constexpr bool HasPointer = true;
static constexpr bool ContainsUnion = false;
static constexpr ::fidl::internal::TransactionalMessageKind MessageKind =
::fidl::internal::TransactionalMessageKind::kResponse;
};
using GetInfoRequest = ::fidl::AnyZeroArgMessage;
struct GetStatsResponse final {
FIDL_ALIGNDECL
fidl_message_header_t _hdr;
int32_t status;
::llcpp::fuchsia::hardware::block::BlockStats* stats;
static constexpr const fidl_type_t* Type = &v1_fuchsia_hardware_block_partition_PartitionGetStatsResponseTable;
static constexpr uint32_t MaxNumHandles = 0;
static constexpr uint32_t PrimarySize = 32;
static constexpr uint32_t MaxOutOfLine = 480;
static constexpr bool HasFlexibleEnvelope = false;
static constexpr bool HasPointer = true;
static constexpr bool ContainsUnion = false;
static constexpr ::fidl::internal::TransactionalMessageKind MessageKind =
::fidl::internal::TransactionalMessageKind::kResponse;
};
struct GetStatsRequest final {
FIDL_ALIGNDECL
fidl_message_header_t _hdr;
bool clear;
static constexpr const fidl_type_t* Type = &v1_fuchsia_hardware_block_partition_PartitionGetStatsRequestTable;
static constexpr uint32_t MaxNumHandles = 0;
static constexpr uint32_t PrimarySize = 24;
static constexpr uint32_t MaxOutOfLine = 0;
static constexpr uint32_t AltPrimarySize = 24;
static constexpr uint32_t AltMaxOutOfLine = 0;
static constexpr bool HasFlexibleEnvelope = false;
static constexpr bool HasPointer = false;
static constexpr bool ContainsUnion = false;
static constexpr ::fidl::internal::TransactionalMessageKind MessageKind =
::fidl::internal::TransactionalMessageKind::kRequest;
using ResponseType = GetStatsResponse;
};
struct GetFifoResponse final {
FIDL_ALIGNDECL
fidl_message_header_t _hdr;
int32_t status;
::zx::fifo fifo;
static constexpr const fidl_type_t* Type = &v1_fuchsia_hardware_block_partition_PartitionGetFifoResponseTable;
static constexpr uint32_t MaxNumHandles = 1;
static constexpr uint32_t PrimarySize = 24;
static constexpr uint32_t MaxOutOfLine = 0;
static constexpr bool HasFlexibleEnvelope = false;
static constexpr bool HasPointer = false;
static constexpr bool ContainsUnion = false;
static constexpr ::fidl::internal::TransactionalMessageKind MessageKind =
::fidl::internal::TransactionalMessageKind::kResponse;
};
using GetFifoRequest = ::fidl::AnyZeroArgMessage;
struct AttachVmoResponse final {
FIDL_ALIGNDECL
fidl_message_header_t _hdr;
int32_t status;
::llcpp::fuchsia::hardware::block::VmoID* vmoid;
static constexpr const fidl_type_t* Type = &v1_fuchsia_hardware_block_partition_PartitionAttachVmoResponseTable;
static constexpr uint32_t MaxNumHandles = 0;
static constexpr uint32_t PrimarySize = 32;
static constexpr uint32_t MaxOutOfLine = 8;
static constexpr bool HasFlexibleEnvelope = false;
static constexpr bool HasPointer = true;
static constexpr bool ContainsUnion = false;
static constexpr ::fidl::internal::TransactionalMessageKind MessageKind =
::fidl::internal::TransactionalMessageKind::kResponse;
};
struct AttachVmoRequest final {
FIDL_ALIGNDECL
fidl_message_header_t _hdr;
::zx::vmo vmo;
static constexpr const fidl_type_t* Type = &v1_fuchsia_hardware_block_partition_PartitionAttachVmoRequestTable;
static constexpr uint32_t MaxNumHandles = 1;
static constexpr uint32_t PrimarySize = 24;
static constexpr uint32_t MaxOutOfLine = 0;
static constexpr uint32_t AltPrimarySize = 24;
static constexpr uint32_t AltMaxOutOfLine = 0;
static constexpr bool HasFlexibleEnvelope = false;
static constexpr bool HasPointer = false;
static constexpr bool ContainsUnion = false;
static constexpr ::fidl::internal::TransactionalMessageKind MessageKind =
::fidl::internal::TransactionalMessageKind::kRequest;
using ResponseType = AttachVmoResponse;
};
struct CloseFifoResponse final {
FIDL_ALIGNDECL
fidl_message_header_t _hdr;
int32_t status;
static constexpr const fidl_type_t* Type = &v1_fuchsia_hardware_block_partition_PartitionCloseFifoResponseTable;
static constexpr uint32_t MaxNumHandles = 0;
static constexpr uint32_t PrimarySize = 24;
static constexpr uint32_t MaxOutOfLine = 0;
static constexpr bool HasFlexibleEnvelope = false;
static constexpr bool HasPointer = false;
static constexpr bool ContainsUnion = false;
static constexpr ::fidl::internal::TransactionalMessageKind MessageKind =
::fidl::internal::TransactionalMessageKind::kResponse;
};
using CloseFifoRequest = ::fidl::AnyZeroArgMessage;
struct RebindDeviceResponse final {
FIDL_ALIGNDECL
fidl_message_header_t _hdr;
int32_t status;
static constexpr const fidl_type_t* Type = &v1_fuchsia_hardware_block_partition_PartitionRebindDeviceResponseTable;
static constexpr uint32_t MaxNumHandles = 0;
static constexpr uint32_t PrimarySize = 24;
static constexpr uint32_t MaxOutOfLine = 0;
static constexpr bool HasFlexibleEnvelope = false;
static constexpr bool HasPointer = false;
static constexpr bool ContainsUnion = false;
static constexpr ::fidl::internal::TransactionalMessageKind MessageKind =
::fidl::internal::TransactionalMessageKind::kResponse;
};
using RebindDeviceRequest = ::fidl::AnyZeroArgMessage;
struct GetTypeGuidResponse final {
FIDL_ALIGNDECL
fidl_message_header_t _hdr;
int32_t status;
::llcpp::fuchsia::hardware::block::partition::GUID* guid;
static constexpr const fidl_type_t* Type = &v1_fuchsia_hardware_block_partition_PartitionGetTypeGuidResponseTable;
static constexpr uint32_t MaxNumHandles = 0;
static constexpr uint32_t PrimarySize = 32;
static constexpr uint32_t MaxOutOfLine = 16;
static constexpr bool HasFlexibleEnvelope = false;
static constexpr bool HasPointer = true;
static constexpr bool ContainsUnion = false;
static constexpr ::fidl::internal::TransactionalMessageKind MessageKind =
::fidl::internal::TransactionalMessageKind::kResponse;
};
using GetTypeGuidRequest = ::fidl::AnyZeroArgMessage;
struct GetInstanceGuidResponse final {
FIDL_ALIGNDECL
fidl_message_header_t _hdr;
int32_t status;
::llcpp::fuchsia::hardware::block::partition::GUID* guid;
static constexpr const fidl_type_t* Type = &v1_fuchsia_hardware_block_partition_PartitionGetInstanceGuidResponseTable;
static constexpr uint32_t MaxNumHandles = 0;
static constexpr uint32_t PrimarySize = 32;
static constexpr uint32_t MaxOutOfLine = 16;
static constexpr bool HasFlexibleEnvelope = false;
static constexpr bool HasPointer = true;
static constexpr bool ContainsUnion = false;
static constexpr ::fidl::internal::TransactionalMessageKind MessageKind =
::fidl::internal::TransactionalMessageKind::kResponse;
};
using GetInstanceGuidRequest = ::fidl::AnyZeroArgMessage;
struct GetNameResponse final {
FIDL_ALIGNDECL
fidl_message_header_t _hdr;
int32_t status;
::fidl::StringView name;
static constexpr const fidl_type_t* Type = &v1_fuchsia_hardware_block_partition_PartitionGetNameResponseTable;
static constexpr uint32_t MaxNumHandles = 0;
static constexpr uint32_t PrimarySize = 40;
static constexpr uint32_t MaxOutOfLine = 128;
static constexpr bool HasFlexibleEnvelope = false;
static constexpr bool HasPointer = true;
static constexpr bool ContainsUnion = false;
static constexpr ::fidl::internal::TransactionalMessageKind MessageKind =
::fidl::internal::TransactionalMessageKind::kResponse;
};
using GetNameRequest = ::fidl::AnyZeroArgMessage;
// Collection of return types of FIDL calls in this interface.
class ResultOf final {
ResultOf() = delete;
private:
template <typename ResponseType>
class GetInfo_Impl final : private ::fidl::internal::OwnedSyncCallBase<ResponseType> {
using Super = ::fidl::internal::OwnedSyncCallBase<ResponseType>;
public:
GetInfo_Impl(::zx::unowned_channel _client_end);
~GetInfo_Impl() = default;
GetInfo_Impl(GetInfo_Impl&& other) = default;
GetInfo_Impl& operator=(GetInfo_Impl&& other) = default;
using Super::status;
using Super::error;
using Super::ok;
using Super::Unwrap;
using Super::value;
using Super::operator->;
using Super::operator*;
};
template <typename ResponseType>
class GetStats_Impl final : private ::fidl::internal::OwnedSyncCallBase<ResponseType> {
using Super = ::fidl::internal::OwnedSyncCallBase<ResponseType>;
public:
GetStats_Impl(::zx::unowned_channel _client_end, bool clear);
~GetStats_Impl() = default;
GetStats_Impl(GetStats_Impl&& other) = default;
GetStats_Impl& operator=(GetStats_Impl&& other) = default;
using Super::status;
using Super::error;
using Super::ok;
using Super::Unwrap;
using Super::value;
using Super::operator->;
using Super::operator*;
};
template <typename ResponseType>
class GetFifo_Impl final : private ::fidl::internal::OwnedSyncCallBase<ResponseType> {
using Super = ::fidl::internal::OwnedSyncCallBase<ResponseType>;
public:
GetFifo_Impl(::zx::unowned_channel _client_end);
~GetFifo_Impl() = default;
GetFifo_Impl(GetFifo_Impl&& other) = default;
GetFifo_Impl& operator=(GetFifo_Impl&& other) = default;
using Super::status;
using Super::error;
using Super::ok;
using Super::Unwrap;
using Super::value;
using Super::operator->;
using Super::operator*;
};
template <typename ResponseType>
class AttachVmo_Impl final : private ::fidl::internal::OwnedSyncCallBase<ResponseType> {
using Super = ::fidl::internal::OwnedSyncCallBase<ResponseType>;
public:
AttachVmo_Impl(::zx::unowned_channel _client_end, ::zx::vmo vmo);
~AttachVmo_Impl() = default;
AttachVmo_Impl(AttachVmo_Impl&& other) = default;
AttachVmo_Impl& operator=(AttachVmo_Impl&& other) = default;
using Super::status;
using Super::error;
using Super::ok;
using Super::Unwrap;
using Super::value;
using Super::operator->;
using Super::operator*;
};
template <typename ResponseType>
class CloseFifo_Impl final : private ::fidl::internal::OwnedSyncCallBase<ResponseType> {
using Super = ::fidl::internal::OwnedSyncCallBase<ResponseType>;
public:
CloseFifo_Impl(::zx::unowned_channel _client_end);
~CloseFifo_Impl() = default;
CloseFifo_Impl(CloseFifo_Impl&& other) = default;
CloseFifo_Impl& operator=(CloseFifo_Impl&& other) = default;
using Super::status;
using Super::error;
using Super::ok;
using Super::Unwrap;
using Super::value;
using Super::operator->;
using Super::operator*;
};
template <typename ResponseType>
class RebindDevice_Impl final : private ::fidl::internal::OwnedSyncCallBase<ResponseType> {
using Super = ::fidl::internal::OwnedSyncCallBase<ResponseType>;
public:
RebindDevice_Impl(::zx::unowned_channel _client_end);
~RebindDevice_Impl() = default;
RebindDevice_Impl(RebindDevice_Impl&& other) = default;
RebindDevice_Impl& operator=(RebindDevice_Impl&& other) = default;
using Super::status;
using Super::error;
using Super::ok;
using Super::Unwrap;
using Super::value;
using Super::operator->;
using Super::operator*;
};
template <typename ResponseType>
class GetTypeGuid_Impl final : private ::fidl::internal::OwnedSyncCallBase<ResponseType> {
using Super = ::fidl::internal::OwnedSyncCallBase<ResponseType>;
public:
GetTypeGuid_Impl(::zx::unowned_channel _client_end);
~GetTypeGuid_Impl() = default;
GetTypeGuid_Impl(GetTypeGuid_Impl&& other) = default;
GetTypeGuid_Impl& operator=(GetTypeGuid_Impl&& other) = default;
using Super::status;
using Super::error;
using Super::ok;
using Super::Unwrap;
using Super::value;
using Super::operator->;
using Super::operator*;
};
template <typename ResponseType>
class GetInstanceGuid_Impl final : private ::fidl::internal::OwnedSyncCallBase<ResponseType> {
using Super = ::fidl::internal::OwnedSyncCallBase<ResponseType>;
public:
GetInstanceGuid_Impl(::zx::unowned_channel _client_end);
~GetInstanceGuid_Impl() = default;
GetInstanceGuid_Impl(GetInstanceGuid_Impl&& other) = default;
GetInstanceGuid_Impl& operator=(GetInstanceGuid_Impl&& other) = default;
using Super::status;
using Super::error;
using Super::ok;
using Super::Unwrap;
using Super::value;
using Super::operator->;
using Super::operator*;
};
template <typename ResponseType>
class GetName_Impl final : private ::fidl::internal::OwnedSyncCallBase<ResponseType> {
using Super = ::fidl::internal::OwnedSyncCallBase<ResponseType>;
public:
GetName_Impl(::zx::unowned_channel _client_end);
~GetName_Impl() = default;
GetName_Impl(GetName_Impl&& other) = default;
GetName_Impl& operator=(GetName_Impl&& other) = default;
using Super::status;
using Super::error;
using Super::ok;
using Super::Unwrap;
using Super::value;
using Super::operator->;
using Super::operator*;
};
public:
using GetInfo = GetInfo_Impl<GetInfoResponse>;
using GetStats = GetStats_Impl<GetStatsResponse>;
using GetFifo = GetFifo_Impl<GetFifoResponse>;
using AttachVmo = AttachVmo_Impl<AttachVmoResponse>;
using CloseFifo = CloseFifo_Impl<CloseFifoResponse>;
using RebindDevice = RebindDevice_Impl<RebindDeviceResponse>;
using GetTypeGuid = GetTypeGuid_Impl<GetTypeGuidResponse>;
using GetInstanceGuid = GetInstanceGuid_Impl<GetInstanceGuidResponse>;
using GetName = GetName_Impl<GetNameResponse>;
};
// Collection of return types of FIDL calls in this interface,
// when the caller-allocate flavor or in-place call is used.
class UnownedResultOf final {
UnownedResultOf() = delete;
private:
template <typename ResponseType>
class GetInfo_Impl final : private ::fidl::internal::UnownedSyncCallBase<ResponseType> {
using Super = ::fidl::internal::UnownedSyncCallBase<ResponseType>;
public:
GetInfo_Impl(::zx::unowned_channel _client_end, ::fidl::BytePart _response_buffer);
~GetInfo_Impl() = default;
GetInfo_Impl(GetInfo_Impl&& other) = default;
GetInfo_Impl& operator=(GetInfo_Impl&& other) = default;
using Super::status;
using Super::error;
using Super::ok;
using Super::Unwrap;
using Super::value;
using Super::operator->;
using Super::operator*;
};
template <typename ResponseType>
class GetStats_Impl final : private ::fidl::internal::UnownedSyncCallBase<ResponseType> {
using Super = ::fidl::internal::UnownedSyncCallBase<ResponseType>;
public:
GetStats_Impl(::zx::unowned_channel _client_end, ::fidl::BytePart _request_buffer, bool clear, ::fidl::BytePart _response_buffer);
~GetStats_Impl() = default;
GetStats_Impl(GetStats_Impl&& other) = default;
GetStats_Impl& operator=(GetStats_Impl&& other) = default;
using Super::status;
using Super::error;
using Super::ok;
using Super::Unwrap;
using Super::value;
using Super::operator->;
using Super::operator*;
};
template <typename ResponseType>
class GetFifo_Impl final : private ::fidl::internal::UnownedSyncCallBase<ResponseType> {
using Super = ::fidl::internal::UnownedSyncCallBase<ResponseType>;
public:
GetFifo_Impl(::zx::unowned_channel _client_end, ::fidl::BytePart _response_buffer);
~GetFifo_Impl() = default;
GetFifo_Impl(GetFifo_Impl&& other) = default;
GetFifo_Impl& operator=(GetFifo_Impl&& other) = default;
using Super::status;
using Super::error;
using Super::ok;
using Super::Unwrap;
using Super::value;
using Super::operator->;
using Super::operator*;
};
template <typename ResponseType>
class AttachVmo_Impl final : private ::fidl::internal::UnownedSyncCallBase<ResponseType> {
using Super = ::fidl::internal::UnownedSyncCallBase<ResponseType>;
public:
AttachVmo_Impl(::zx::unowned_channel _client_end, ::fidl::BytePart _request_buffer, ::zx::vmo vmo, ::fidl::BytePart _response_buffer);
~AttachVmo_Impl() = default;
AttachVmo_Impl(AttachVmo_Impl&& other) = default;
AttachVmo_Impl& operator=(AttachVmo_Impl&& other) = default;
using Super::status;
using Super::error;
using Super::ok;
using Super::Unwrap;
using Super::value;
using Super::operator->;
using Super::operator*;
};
template <typename ResponseType>
class CloseFifo_Impl final : private ::fidl::internal::UnownedSyncCallBase<ResponseType> {
using Super = ::fidl::internal::UnownedSyncCallBase<ResponseType>;
public:
CloseFifo_Impl(::zx::unowned_channel _client_end, ::fidl::BytePart _response_buffer);
~CloseFifo_Impl() = default;
CloseFifo_Impl(CloseFifo_Impl&& other) = default;
CloseFifo_Impl& operator=(CloseFifo_Impl&& other) = default;
using Super::status;
using Super::error;
using Super::ok;
using Super::Unwrap;
using Super::value;
using Super::operator->;
using Super::operator*;
};
template <typename ResponseType>
class RebindDevice_Impl final : private ::fidl::internal::UnownedSyncCallBase<ResponseType> {
using Super = ::fidl::internal::UnownedSyncCallBase<ResponseType>;
public:
RebindDevice_Impl(::zx::unowned_channel _client_end, ::fidl::BytePart _response_buffer);
~RebindDevice_Impl() = default;
RebindDevice_Impl(RebindDevice_Impl&& other) = default;
RebindDevice_Impl& operator=(RebindDevice_Impl&& other) = default;
using Super::status;
using Super::error;
using Super::ok;
using Super::Unwrap;
using Super::value;
using Super::operator->;
using Super::operator*;
};
template <typename ResponseType>
class GetTypeGuid_Impl final : private ::fidl::internal::UnownedSyncCallBase<ResponseType> {
using Super = ::fidl::internal::UnownedSyncCallBase<ResponseType>;
public:
GetTypeGuid_Impl(::zx::unowned_channel _client_end, ::fidl::BytePart _response_buffer);
~GetTypeGuid_Impl() = default;
GetTypeGuid_Impl(GetTypeGuid_Impl&& other) = default;
GetTypeGuid_Impl& operator=(GetTypeGuid_Impl&& other) = default;
using Super::status;
using Super::error;
using Super::ok;
using Super::Unwrap;
using Super::value;
using Super::operator->;
using Super::operator*;
};
template <typename ResponseType>
class GetInstanceGuid_Impl final : private ::fidl::internal::UnownedSyncCallBase<ResponseType> {
using Super = ::fidl::internal::UnownedSyncCallBase<ResponseType>;
public:
GetInstanceGuid_Impl(::zx::unowned_channel _client_end, ::fidl::BytePart _response_buffer);
~GetInstanceGuid_Impl() = default;
GetInstanceGuid_Impl(GetInstanceGuid_Impl&& other) = default;
GetInstanceGuid_Impl& operator=(GetInstanceGuid_Impl&& other) = default;
using Super::status;
using Super::error;
using Super::ok;
using Super::Unwrap;
using Super::value;
using Super::operator->;
using Super::operator*;
};
template <typename ResponseType>
class GetName_Impl final : private ::fidl::internal::UnownedSyncCallBase<ResponseType> {
using Super = ::fidl::internal::UnownedSyncCallBase<ResponseType>;
public:
GetName_Impl(::zx::unowned_channel _client_end, ::fidl::BytePart _response_buffer);
~GetName_Impl() = default;
GetName_Impl(GetName_Impl&& other) = default;
GetName_Impl& operator=(GetName_Impl&& other) = default;
using Super::status;
using Super::error;
using Super::ok;
using Super::Unwrap;
using Super::value;
using Super::operator->;
using Super::operator*;
};
public:
using GetInfo = GetInfo_Impl<GetInfoResponse>;
using GetStats = GetStats_Impl<GetStatsResponse>;
using GetFifo = GetFifo_Impl<GetFifoResponse>;
using AttachVmo = AttachVmo_Impl<AttachVmoResponse>;
using CloseFifo = CloseFifo_Impl<CloseFifoResponse>;
using RebindDevice = RebindDevice_Impl<RebindDeviceResponse>;
using GetTypeGuid = GetTypeGuid_Impl<GetTypeGuidResponse>;
using GetInstanceGuid = GetInstanceGuid_Impl<GetInstanceGuidResponse>;
using GetName = GetName_Impl<GetNameResponse>;
};
class SyncClient final {
public:
explicit SyncClient(::zx::channel channel) : channel_(std::move(channel)) {}
~SyncClient() = default;
SyncClient(SyncClient&&) = default;
SyncClient& operator=(SyncClient&&) = default;
const ::zx::channel& channel() const { return channel_; }
::zx::channel* mutable_channel() { return &channel_; }
// Allocates 72 bytes of message buffer on the stack. No heap allocation necessary.
ResultOf::GetInfo GetInfo();
// Caller provides the backing storage for FIDL message via request and response buffers.
UnownedResultOf::GetInfo GetInfo(::fidl::BytePart _response_buffer);
// Allocates 24 bytes of request buffer on the stack. Response is heap-allocated.
ResultOf::GetStats GetStats(bool clear);
// Caller provides the backing storage for FIDL message via request and response buffers.
UnownedResultOf::GetStats GetStats(::fidl::BytePart _request_buffer, bool clear, ::fidl::BytePart _response_buffer);
// Allocates 40 bytes of message buffer on the stack. No heap allocation necessary.
ResultOf::GetFifo GetFifo();
// Caller provides the backing storage for FIDL message via request and response buffers.
UnownedResultOf::GetFifo GetFifo(::fidl::BytePart _response_buffer);
// Allocates 64 bytes of message buffer on the stack. No heap allocation necessary.
ResultOf::AttachVmo AttachVmo(::zx::vmo vmo);
// Caller provides the backing storage for FIDL message via request and response buffers.
UnownedResultOf::AttachVmo AttachVmo(::fidl::BytePart _request_buffer, ::zx::vmo vmo, ::fidl::BytePart _response_buffer);
// Allocates 40 bytes of message buffer on the stack. No heap allocation necessary.
ResultOf::CloseFifo CloseFifo();
// Caller provides the backing storage for FIDL message via request and response buffers.
UnownedResultOf::CloseFifo CloseFifo(::fidl::BytePart _response_buffer);
// Allocates 40 bytes of message buffer on the stack. No heap allocation necessary.
ResultOf::RebindDevice RebindDevice();
// Caller provides the backing storage for FIDL message via request and response buffers.
UnownedResultOf::RebindDevice RebindDevice(::fidl::BytePart _response_buffer);
// Allocates 64 bytes of message buffer on the stack. No heap allocation necessary.
ResultOf::GetTypeGuid GetTypeGuid();
// Caller provides the backing storage for FIDL message via request and response buffers.
UnownedResultOf::GetTypeGuid GetTypeGuid(::fidl::BytePart _response_buffer);
// Allocates 64 bytes of message buffer on the stack. No heap allocation necessary.
ResultOf::GetInstanceGuid GetInstanceGuid();
// Caller provides the backing storage for FIDL message via request and response buffers.
UnownedResultOf::GetInstanceGuid GetInstanceGuid(::fidl::BytePart _response_buffer);
// Allocates 184 bytes of message buffer on the stack. No heap allocation necessary.
ResultOf::GetName GetName();
// Caller provides the backing storage for FIDL message via request and response buffers.
UnownedResultOf::GetName GetName(::fidl::BytePart _response_buffer);
private:
::zx::channel channel_;
};
// Methods to make a sync FIDL call directly on an unowned channel, avoiding setting up a client.
class Call final {
Call() = delete;
public:
// Allocates 72 bytes of message buffer on the stack. No heap allocation necessary.
static ResultOf::GetInfo GetInfo(::zx::unowned_channel _client_end);
// Caller provides the backing storage for FIDL message via request and response buffers.
static UnownedResultOf::GetInfo GetInfo(::zx::unowned_channel _client_end, ::fidl::BytePart _response_buffer);
// Allocates 24 bytes of request buffer on the stack. Response is heap-allocated.
static ResultOf::GetStats GetStats(::zx::unowned_channel _client_end, bool clear);
// Caller provides the backing storage for FIDL message via request and response buffers.
static UnownedResultOf::GetStats GetStats(::zx::unowned_channel _client_end, ::fidl::BytePart _request_buffer, bool clear, ::fidl::BytePart _response_buffer);
// Allocates 40 bytes of message buffer on the stack. No heap allocation necessary.
static ResultOf::GetFifo GetFifo(::zx::unowned_channel _client_end);
// Caller provides the backing storage for FIDL message via request and response buffers.
static UnownedResultOf::GetFifo GetFifo(::zx::unowned_channel _client_end, ::fidl::BytePart _response_buffer);
// Allocates 64 bytes of message buffer on the stack. No heap allocation necessary.
static ResultOf::AttachVmo AttachVmo(::zx::unowned_channel _client_end, ::zx::vmo vmo);
// Caller provides the backing storage for FIDL message via request and response buffers.
static UnownedResultOf::AttachVmo AttachVmo(::zx::unowned_channel _client_end, ::fidl::BytePart _request_buffer, ::zx::vmo vmo, ::fidl::BytePart _response_buffer);
// Allocates 40 bytes of message buffer on the stack. No heap allocation necessary.
static ResultOf::CloseFifo CloseFifo(::zx::unowned_channel _client_end);
// Caller provides the backing storage for FIDL message via request and response buffers.
static UnownedResultOf::CloseFifo CloseFifo(::zx::unowned_channel _client_end, ::fidl::BytePart _response_buffer);
// Allocates 40 bytes of message buffer on the stack. No heap allocation necessary.
static ResultOf::RebindDevice RebindDevice(::zx::unowned_channel _client_end);
// Caller provides the backing storage for FIDL message via request and response buffers.
static UnownedResultOf::RebindDevice RebindDevice(::zx::unowned_channel _client_end, ::fidl::BytePart _response_buffer);
// Allocates 64 bytes of message buffer on the stack. No heap allocation necessary.
static ResultOf::GetTypeGuid GetTypeGuid(::zx::unowned_channel _client_end);
// Caller provides the backing storage for FIDL message via request and response buffers.
static UnownedResultOf::GetTypeGuid GetTypeGuid(::zx::unowned_channel _client_end, ::fidl::BytePart _response_buffer);
// Allocates 64 bytes of message buffer on the stack. No heap allocation necessary.
static ResultOf::GetInstanceGuid GetInstanceGuid(::zx::unowned_channel _client_end);
// Caller provides the backing storage for FIDL message via request and response buffers.
static UnownedResultOf::GetInstanceGuid GetInstanceGuid(::zx::unowned_channel _client_end, ::fidl::BytePart _response_buffer);
// Allocates 184 bytes of message buffer on the stack. No heap allocation necessary.
static ResultOf::GetName GetName(::zx::unowned_channel _client_end);
// Caller provides the backing storage for FIDL message via request and response buffers.
static UnownedResultOf::GetName GetName(::zx::unowned_channel _client_end, ::fidl::BytePart _response_buffer);
};
// Messages are encoded and decoded in-place when these methods are used.
// Additionally, requests must be already laid-out according to the FIDL wire-format.
class InPlace final {
InPlace() = delete;
public:
static ::fidl::DecodeResult<GetInfoResponse> GetInfo(::zx::unowned_channel _client_end, ::fidl::BytePart response_buffer);
static ::fidl::DecodeResult<GetStatsResponse> GetStats(::zx::unowned_channel _client_end, ::fidl::DecodedMessage<GetStatsRequest> params, ::fidl::BytePart response_buffer);
static ::fidl::DecodeResult<GetFifoResponse> GetFifo(::zx::unowned_channel _client_end, ::fidl::BytePart response_buffer);
static ::fidl::DecodeResult<AttachVmoResponse> AttachVmo(::zx::unowned_channel _client_end, ::fidl::DecodedMessage<AttachVmoRequest> params, ::fidl::BytePart response_buffer);
static ::fidl::DecodeResult<CloseFifoResponse> CloseFifo(::zx::unowned_channel _client_end, ::fidl::BytePart response_buffer);
static ::fidl::DecodeResult<RebindDeviceResponse> RebindDevice(::zx::unowned_channel _client_end, ::fidl::BytePart response_buffer);
static ::fidl::DecodeResult<GetTypeGuidResponse> GetTypeGuid(::zx::unowned_channel _client_end, ::fidl::BytePart response_buffer);
static ::fidl::DecodeResult<GetInstanceGuidResponse> GetInstanceGuid(::zx::unowned_channel _client_end, ::fidl::BytePart response_buffer);
static ::fidl::DecodeResult<GetNameResponse> GetName(::zx::unowned_channel _client_end, ::fidl::BytePart response_buffer);
};
// Pure-virtual interface to be implemented by a server.
class Interface {
public:
Interface() = default;
virtual ~Interface() = default;
using _Outer = Partition;
using _Base = ::fidl::CompleterBase;
class GetInfoCompleterBase : public _Base {
public:
void Reply(int32_t status, ::llcpp::fuchsia::hardware::block::BlockInfo* info);
void Reply(::fidl::BytePart _buffer, int32_t status, ::llcpp::fuchsia::hardware::block::BlockInfo* info);
void Reply(::fidl::DecodedMessage<GetInfoResponse> params);
protected:
using ::fidl::CompleterBase::CompleterBase;
};
using GetInfoCompleter = ::fidl::Completer<GetInfoCompleterBase>;
virtual void GetInfo(GetInfoCompleter::Sync _completer) = 0;
class GetStatsCompleterBase : public _Base {
public:
void Reply(int32_t status, ::llcpp::fuchsia::hardware::block::BlockStats* stats);
void Reply(::fidl::BytePart _buffer, int32_t status, ::llcpp::fuchsia::hardware::block::BlockStats* stats);
void Reply(::fidl::DecodedMessage<GetStatsResponse> params);
protected:
using ::fidl::CompleterBase::CompleterBase;
};
using GetStatsCompleter = ::fidl::Completer<GetStatsCompleterBase>;
virtual void GetStats(bool clear, GetStatsCompleter::Sync _completer) = 0;
class GetFifoCompleterBase : public _Base {
public:
void Reply(int32_t status, ::zx::fifo fifo);
void Reply(::fidl::BytePart _buffer, int32_t status, ::zx::fifo fifo);
void Reply(::fidl::DecodedMessage<GetFifoResponse> params);
protected:
using ::fidl::CompleterBase::CompleterBase;
};
using GetFifoCompleter = ::fidl::Completer<GetFifoCompleterBase>;
virtual void GetFifo(GetFifoCompleter::Sync _completer) = 0;
class AttachVmoCompleterBase : public _Base {
public:
void Reply(int32_t status, ::llcpp::fuchsia::hardware::block::VmoID* vmoid);
void Reply(::fidl::BytePart _buffer, int32_t status, ::llcpp::fuchsia::hardware::block::VmoID* vmoid);
void Reply(::fidl::DecodedMessage<AttachVmoResponse> params);
protected:
using ::fidl::CompleterBase::CompleterBase;
};
using AttachVmoCompleter = ::fidl::Completer<AttachVmoCompleterBase>;
virtual void AttachVmo(::zx::vmo vmo, AttachVmoCompleter::Sync _completer) = 0;
class CloseFifoCompleterBase : public _Base {
public:
void Reply(int32_t status);
void Reply(::fidl::BytePart _buffer, int32_t status);
void Reply(::fidl::DecodedMessage<CloseFifoResponse> params);
protected:
using ::fidl::CompleterBase::CompleterBase;
};
using CloseFifoCompleter = ::fidl::Completer<CloseFifoCompleterBase>;
virtual void CloseFifo(CloseFifoCompleter::Sync _completer) = 0;
class RebindDeviceCompleterBase : public _Base {
public:
void Reply(int32_t status);
void Reply(::fidl::BytePart _buffer, int32_t status);
void Reply(::fidl::DecodedMessage<RebindDeviceResponse> params);
protected:
using ::fidl::CompleterBase::CompleterBase;
};
using RebindDeviceCompleter = ::fidl::Completer<RebindDeviceCompleterBase>;
virtual void RebindDevice(RebindDeviceCompleter::Sync _completer) = 0;
class GetTypeGuidCompleterBase : public _Base {
public:
void Reply(int32_t status, ::llcpp::fuchsia::hardware::block::partition::GUID* guid);
void Reply(::fidl::BytePart _buffer, int32_t status, ::llcpp::fuchsia::hardware::block::partition::GUID* guid);
void Reply(::fidl::DecodedMessage<GetTypeGuidResponse> params);
protected:
using ::fidl::CompleterBase::CompleterBase;
};
using GetTypeGuidCompleter = ::fidl::Completer<GetTypeGuidCompleterBase>;
virtual void GetTypeGuid(GetTypeGuidCompleter::Sync _completer) = 0;
class GetInstanceGuidCompleterBase : public _Base {
public:
void Reply(int32_t status, ::llcpp::fuchsia::hardware::block::partition::GUID* guid);
void Reply(::fidl::BytePart _buffer, int32_t status, ::llcpp::fuchsia::hardware::block::partition::GUID* guid);
void Reply(::fidl::DecodedMessage<GetInstanceGuidResponse> params);
protected:
using ::fidl::CompleterBase::CompleterBase;
};
using GetInstanceGuidCompleter = ::fidl::Completer<GetInstanceGuidCompleterBase>;
virtual void GetInstanceGuid(GetInstanceGuidCompleter::Sync _completer) = 0;
class GetNameCompleterBase : public _Base {
public:
void Reply(int32_t status, ::fidl::StringView name);
void Reply(::fidl::BytePart _buffer, int32_t status, ::fidl::StringView name);
void Reply(::fidl::DecodedMessage<GetNameResponse> params);
protected:
using ::fidl::CompleterBase::CompleterBase;
};
using GetNameCompleter = ::fidl::Completer<GetNameCompleterBase>;
virtual void GetName(GetNameCompleter::Sync _completer) = 0;
};
// Attempts to dispatch the incoming message to a handler function in the server implementation.
// If there is no matching handler, it returns false, leaving the message and transaction intact.
// In all other cases, it consumes the message and returns true.
// It is possible to chain multiple TryDispatch functions in this manner.
static bool TryDispatch(Interface* impl, fidl_msg_t* msg, ::fidl::Transaction* txn);
// Dispatches the incoming message to one of the handlers functions in the interface.
// If there is no matching handler, it closes all the handles in |msg| and closes the channel with
// a |ZX_ERR_NOT_SUPPORTED| epitaph, before returning false. The message should then be discarded.
static bool Dispatch(Interface* impl, fidl_msg_t* msg, ::fidl::Transaction* txn);
// Same as |Dispatch|, but takes a |void*| instead of |Interface*|. Only used with |fidl::Bind|
// to reduce template expansion.
// Do not call this method manually. Use |Dispatch| instead.
static bool TypeErasedDispatch(void* impl, fidl_msg_t* msg, ::fidl::Transaction* txn) {
return Dispatch(static_cast<Interface*>(impl), msg, txn);
}
// Helper functions to fill in the transaction header in a |DecodedMessage<TransactionalMessage>|.
class SetTransactionHeaderFor final {
SetTransactionHeaderFor() = delete;
public:
static void GetInfoRequest(const ::fidl::DecodedMessage<Partition::GetInfoRequest>& _msg);
static void GetInfoResponse(const ::fidl::DecodedMessage<Partition::GetInfoResponse>& _msg);
static void GetStatsRequest(const ::fidl::DecodedMessage<Partition::GetStatsRequest>& _msg);
static void GetStatsResponse(const ::fidl::DecodedMessage<Partition::GetStatsResponse>& _msg);
static void GetFifoRequest(const ::fidl::DecodedMessage<Partition::GetFifoRequest>& _msg);
static void GetFifoResponse(const ::fidl::DecodedMessage<Partition::GetFifoResponse>& _msg);
static void AttachVmoRequest(const ::fidl::DecodedMessage<Partition::AttachVmoRequest>& _msg);
static void AttachVmoResponse(const ::fidl::DecodedMessage<Partition::AttachVmoResponse>& _msg);
static void CloseFifoRequest(const ::fidl::DecodedMessage<Partition::CloseFifoRequest>& _msg);
static void CloseFifoResponse(const ::fidl::DecodedMessage<Partition::CloseFifoResponse>& _msg);
static void RebindDeviceRequest(const ::fidl::DecodedMessage<Partition::RebindDeviceRequest>& _msg);
static void RebindDeviceResponse(const ::fidl::DecodedMessage<Partition::RebindDeviceResponse>& _msg);
static void GetTypeGuidRequest(const ::fidl::DecodedMessage<Partition::GetTypeGuidRequest>& _msg);
static void GetTypeGuidResponse(const ::fidl::DecodedMessage<Partition::GetTypeGuidResponse>& _msg);
static void GetInstanceGuidRequest(const ::fidl::DecodedMessage<Partition::GetInstanceGuidRequest>& _msg);
static void GetInstanceGuidResponse(const ::fidl::DecodedMessage<Partition::GetInstanceGuidResponse>& _msg);
static void GetNameRequest(const ::fidl::DecodedMessage<Partition::GetNameRequest>& _msg);
static void GetNameResponse(const ::fidl::DecodedMessage<Partition::GetNameResponse>& _msg);
};
};
constexpr uint32_t NAME_LENGTH = 128u;
constexpr uint32_t GUID_LENGTH = 16u;
extern "C" const fidl_type_t v1_fuchsia_hardware_block_partition_GUIDTable;
struct GUID {
static constexpr const fidl_type_t* Type = &v1_fuchsia_hardware_block_partition_GUIDTable;
static constexpr uint32_t MaxNumHandles = 0;
static constexpr uint32_t PrimarySize = 16;
[[maybe_unused]]
static constexpr uint32_t MaxOutOfLine = 0;
static constexpr bool HasPointer = false;
::fidl::Array<uint8_t, 16> value = {};
};
} // namespace partition
} // namespace block
} // namespace hardware
} // namespace fuchsia
} // namespace llcpp
namespace fidl {
template <>
struct IsFidlType<::llcpp::fuchsia::hardware::block::partition::Partition::GetInfoResponse> : public std::true_type {};
template <>
struct IsFidlMessage<::llcpp::fuchsia::hardware::block::partition::Partition::GetInfoResponse> : public std::true_type {};
static_assert(sizeof(::llcpp::fuchsia::hardware::block::partition::Partition::GetInfoResponse)
== ::llcpp::fuchsia::hardware::block::partition::Partition::GetInfoResponse::PrimarySize);
static_assert(offsetof(::llcpp::fuchsia::hardware::block::partition::Partition::GetInfoResponse, status) == 16);
static_assert(offsetof(::llcpp::fuchsia::hardware::block::partition::Partition::GetInfoResponse, info) == 24);
template <>
struct IsFidlType<::llcpp::fuchsia::hardware::block::partition::Partition::GetStatsRequest> : public std::true_type {};
template <>
struct IsFidlMessage<::llcpp::fuchsia::hardware::block::partition::Partition::GetStatsRequest> : public std::true_type {};
static_assert(sizeof(::llcpp::fuchsia::hardware::block::partition::Partition::GetStatsRequest)
== ::llcpp::fuchsia::hardware::block::partition::Partition::GetStatsRequest::PrimarySize);
static_assert(offsetof(::llcpp::fuchsia::hardware::block::partition::Partition::GetStatsRequest, clear) == 16);
template <>
struct IsFidlType<::llcpp::fuchsia::hardware::block::partition::Partition::GetStatsResponse> : public std::true_type {};
template <>
struct IsFidlMessage<::llcpp::fuchsia::hardware::block::partition::Partition::GetStatsResponse> : public std::true_type {};
static_assert(sizeof(::llcpp::fuchsia::hardware::block::partition::Partition::GetStatsResponse)
== ::llcpp::fuchsia::hardware::block::partition::Partition::GetStatsResponse::PrimarySize);
static_assert(offsetof(::llcpp::fuchsia::hardware::block::partition::Partition::GetStatsResponse, status) == 16);
static_assert(offsetof(::llcpp::fuchsia::hardware::block::partition::Partition::GetStatsResponse, stats) == 24);
template <>
struct IsFidlType<::llcpp::fuchsia::hardware::block::partition::Partition::GetFifoResponse> : public std::true_type {};
template <>
struct IsFidlMessage<::llcpp::fuchsia::hardware::block::partition::Partition::GetFifoResponse> : public std::true_type {};
static_assert(sizeof(::llcpp::fuchsia::hardware::block::partition::Partition::GetFifoResponse)
== ::llcpp::fuchsia::hardware::block::partition::Partition::GetFifoResponse::PrimarySize);
static_assert(offsetof(::llcpp::fuchsia::hardware::block::partition::Partition::GetFifoResponse, status) == 16);
static_assert(offsetof(::llcpp::fuchsia::hardware::block::partition::Partition::GetFifoResponse, fifo) == 20);
template <>
struct IsFidlType<::llcpp::fuchsia::hardware::block::partition::Partition::AttachVmoRequest> : public std::true_type {};
template <>
struct IsFidlMessage<::llcpp::fuchsia::hardware::block::partition::Partition::AttachVmoRequest> : public std::true_type {};
static_assert(sizeof(::llcpp::fuchsia::hardware::block::partition::Partition::AttachVmoRequest)
== ::llcpp::fuchsia::hardware::block::partition::Partition::AttachVmoRequest::PrimarySize);
static_assert(offsetof(::llcpp::fuchsia::hardware::block::partition::Partition::AttachVmoRequest, vmo) == 16);
template <>
struct IsFidlType<::llcpp::fuchsia::hardware::block::partition::Partition::AttachVmoResponse> : public std::true_type {};
template <>
struct IsFidlMessage<::llcpp::fuchsia::hardware::block::partition::Partition::AttachVmoResponse> : public std::true_type {};
static_assert(sizeof(::llcpp::fuchsia::hardware::block::partition::Partition::AttachVmoResponse)
== ::llcpp::fuchsia::hardware::block::partition::Partition::AttachVmoResponse::PrimarySize);
static_assert(offsetof(::llcpp::fuchsia::hardware::block::partition::Partition::AttachVmoResponse, status) == 16);
static_assert(offsetof(::llcpp::fuchsia::hardware::block::partition::Partition::AttachVmoResponse, vmoid) == 24);
template <>
struct IsFidlType<::llcpp::fuchsia::hardware::block::partition::Partition::CloseFifoResponse> : public std::true_type {};
template <>
struct IsFidlMessage<::llcpp::fuchsia::hardware::block::partition::Partition::CloseFifoResponse> : public std::true_type {};
static_assert(sizeof(::llcpp::fuchsia::hardware::block::partition::Partition::CloseFifoResponse)
== ::llcpp::fuchsia::hardware::block::partition::Partition::CloseFifoResponse::PrimarySize);
static_assert(offsetof(::llcpp::fuchsia::hardware::block::partition::Partition::CloseFifoResponse, status) == 16);
template <>
struct IsFidlType<::llcpp::fuchsia::hardware::block::partition::Partition::RebindDeviceResponse> : public std::true_type {};
template <>
struct IsFidlMessage<::llcpp::fuchsia::hardware::block::partition::Partition::RebindDeviceResponse> : public std::true_type {};
static_assert(sizeof(::llcpp::fuchsia::hardware::block::partition::Partition::RebindDeviceResponse)
== ::llcpp::fuchsia::hardware::block::partition::Partition::RebindDeviceResponse::PrimarySize);
static_assert(offsetof(::llcpp::fuchsia::hardware::block::partition::Partition::RebindDeviceResponse, status) == 16);
template <>
struct IsFidlType<::llcpp::fuchsia::hardware::block::partition::Partition::GetTypeGuidResponse> : public std::true_type {};
template <>
struct IsFidlMessage<::llcpp::fuchsia::hardware::block::partition::Partition::GetTypeGuidResponse> : public std::true_type {};
static_assert(sizeof(::llcpp::fuchsia::hardware::block::partition::Partition::GetTypeGuidResponse)
== ::llcpp::fuchsia::hardware::block::partition::Partition::GetTypeGuidResponse::PrimarySize);
static_assert(offsetof(::llcpp::fuchsia::hardware::block::partition::Partition::GetTypeGuidResponse, status) == 16);
static_assert(offsetof(::llcpp::fuchsia::hardware::block::partition::Partition::GetTypeGuidResponse, guid) == 24);
template <>
struct IsFidlType<::llcpp::fuchsia::hardware::block::partition::Partition::GetInstanceGuidResponse> : public std::true_type {};
template <>
struct IsFidlMessage<::llcpp::fuchsia::hardware::block::partition::Partition::GetInstanceGuidResponse> : public std::true_type {};
static_assert(sizeof(::llcpp::fuchsia::hardware::block::partition::Partition::GetInstanceGuidResponse)
== ::llcpp::fuchsia::hardware::block::partition::Partition::GetInstanceGuidResponse::PrimarySize);
static_assert(offsetof(::llcpp::fuchsia::hardware::block::partition::Partition::GetInstanceGuidResponse, status) == 16);
static_assert(offsetof(::llcpp::fuchsia::hardware::block::partition::Partition::GetInstanceGuidResponse, guid) == 24);
template <>
struct IsFidlType<::llcpp::fuchsia::hardware::block::partition::Partition::GetNameResponse> : public std::true_type {};
template <>
struct IsFidlMessage<::llcpp::fuchsia::hardware::block::partition::Partition::GetNameResponse> : public std::true_type {};
static_assert(sizeof(::llcpp::fuchsia::hardware::block::partition::Partition::GetNameResponse)
== ::llcpp::fuchsia::hardware::block::partition::Partition::GetNameResponse::PrimarySize);
static_assert(offsetof(::llcpp::fuchsia::hardware::block::partition::Partition::GetNameResponse, status) == 16);
static_assert(offsetof(::llcpp::fuchsia::hardware::block::partition::Partition::GetNameResponse, name) == 24);
template <>
struct IsFidlType<::llcpp::fuchsia::hardware::block::partition::GUID> : public std::true_type {};
static_assert(std::is_standard_layout_v<::llcpp::fuchsia::hardware::block::partition::GUID>);
static_assert(offsetof(::llcpp::fuchsia::hardware::block::partition::GUID, value) == 0);
static_assert(sizeof(::llcpp::fuchsia::hardware::block::partition::GUID) == ::llcpp::fuchsia::hardware::block::partition::GUID::PrimarySize);
} // namespace fidl