fidl::Encoder

Summary

Inheritance

Direct Known Subclasses:fidl::BodyEncoder, fidl::MessageEncoder

Constructors and Destructors

Encoder()
Encoder(internal::WireFormatVersion wire_format)
Encoder(Encoder &&)
~Encoder()

Protected attributes

bytes_
std::vector< uint8_t >
handles_
std::vector< zx_handle_disposition_t >
wire_format_ = internal::WireFormatVersion::kV2
internal::WireFormatVersion

Public functions

Alloc(size_t size)
size_t
CurrentHandleCount() const
size_t
CurrentLength() const
size_t
GetPtr(size_t offset)
T *
GetPtr(size_t offset) const
const T *
TakeBytes()
std::vector< uint8_t >
operator=(Encoder &&) noexcept=default
wire_format()
internal::WireFormatVersion

Protected attributes

bytes_

std::vector< uint8_t > bytes_

handles_

std::vector< zx_handle_disposition_t > handles_

wire_format_

internal::WireFormatVersion wire_format_ = internal::WireFormatVersion::kV2

Public functions

Alloc

size_t Alloc(
  size_t size
)

CurrentHandleCount

size_t CurrentHandleCount() const 

CurrentLength

size_t CurrentLength() const 

Encoder

 Encoder()=default

Encoder

 Encoder(
  internal::WireFormatVersion wire_format
)

Encoder

 Encoder(
  Encoder &&
) noexcept=default

GetPtr

T * GetPtr(
  size_t offset
)

GetPtr

const T * GetPtr(
  size_t offset
) const 

TakeBytes

std::vector< uint8_t > TakeBytes()

operator=

Encoder & operator=(
  Encoder &&
) noexcept=default

wire_format

internal::WireFormatVersion wire_format()

~Encoder

 ~Encoder()=default