class NaturalBodyEncoder

Defined at line 88 of file ../../sdk/lib/fidl/cpp/include/lib/fidl/cpp/natural_encoder.h

The NaturalBodyEncoder produces an |OutgoingMessage|, representing an encoded

domain object (typically used as a transactional message body).

Public Methods

void ~NaturalBodyEncoder ()

Defined at line 82 of file ../../sdk/lib/fidl/cpp/natural_encoder.cc

fidl::OutgoingMessage GetOutgoingMessage (MessageType type)

Return a view representing the encoded body.

Caller takes ownership of the handles.

Do not encode another value until the previous message is sent.

Defined at line 84 of file ../../sdk/lib/fidl/cpp/natural_encoder.cc

void NaturalBodyEncoder (const TransportVTable * vtable, internal::WireFormatVersion wire_format)

Defined at line 90 of file ../../sdk/lib/fidl/cpp/include/lib/fidl/cpp/natural_encoder.h

void Reset ()

Free memory and close owned handles.

Defined at line 107 of file ../../sdk/lib/fidl/cpp/natural_encoder.cc

Enumerations

enum MessageType
Name Value
kTransactional 0
kStandalone 1

Defined at line 95 of file ../../sdk/lib/fidl/cpp/include/lib/fidl/cpp/natural_encoder.h

Friends

class NaturalMessageEncoder