class HLCPPOutgoingBody

Defined at line 214 of file ../../sdk/lib/fidl/hlcpp/include/lib/fidl/cpp/message.h

An outgoing FIDL transactional message body.

A FIDL transactional message body has two parts: the |bytes| and the |handles|. The |bytes|

represent only the transactional message's body, and may be a view into a larger buffer that

is prepended by the transactional message's header bytes as well.

A HLCPPOutgoingBody object does not own the storage for the message parts.

Public Methods

void HLCPPOutgoingBody ()

Creates a message body without any storage.

Defined at line 125 of file ../../sdk/lib/fidl/hlcpp/message.cc

void HLCPPOutgoingBody (BytePart bytes, HandleDispositionPart handles)

Defined at line 127 of file ../../sdk/lib/fidl/hlcpp/message.cc

void ~HLCPPOutgoingBody ()

Defined at line 130 of file ../../sdk/lib/fidl/hlcpp/message.cc

void HLCPPOutgoingBody (HLCPPOutgoingBody && other)

Defined at line 139 of file ../../sdk/lib/fidl/hlcpp/message.cc

HLCPPOutgoingBody & operator= (HLCPPOutgoingBody && other)

Defined at line 142 of file ../../sdk/lib/fidl/hlcpp/message.cc

zx_status_t Validate (const internal::WireFormatVersion & version, const fidl_type_t * type, const char ** error_msg_out)

Validates the message body in-place.

The message must already be in an encoded state, for example, either by

being read from a zx_channel_t or having been created in that state.

Does not modify the message.

Defined at line 148 of file ../../sdk/lib/fidl/hlcpp/message.cc

void ClearHandlesUnsafe ()

Stop tracking the handles in stored in handles(), without closing them.

Typically, these handles will be extracted during decode or the

message's destructor, so this function will be unnecessary. However,

for clients of ulib/fidl which decode message manually, this function

is necessary to prevent extracted handles from being closed.

Defined at line 159 of file ../../sdk/lib/fidl/hlcpp/message.cc

void HLCPPOutgoingBody (const HLCPPOutgoingBody & other)

Defined at line 232 of file ../../sdk/lib/fidl/hlcpp/include/lib/fidl/cpp/message.h

HLCPPOutgoingBody & operator= (const HLCPPOutgoingBody & other)

Defined at line 233 of file ../../sdk/lib/fidl/hlcpp/include/lib/fidl/cpp/message.h

const BytePart & bytes ()

The storage for the bytes of the message body.

Defined at line 239 of file ../../sdk/lib/fidl/hlcpp/include/lib/fidl/cpp/message.h

HandleDispositionPart & handles ()

The storage for the handles of the message body.

When the message is encoded, the handle values are stored in this part of

the message. When the message is decoded, this part of the message is

empty and the handle values are stored in the bytes().

Defined at line 246 of file ../../sdk/lib/fidl/hlcpp/include/lib/fidl/cpp/message.h

const HandleDispositionPart & handles ()

Defined at line 247 of file ../../sdk/lib/fidl/hlcpp/include/lib/fidl/cpp/message.h

template <typename T>
T * GetBytesAs ()

The message body bytes interpreted as the given type.

Defined at line 251 of file ../../sdk/lib/fidl/hlcpp/include/lib/fidl/cpp/message.h

Friends

class HLCPPOutgoingMessage