class MessagePacket

Defined at line 42 of file ../../zircon/kernel/object/include/object/message_packet.h

Public Members

static const uint32_t kIovecChunkSize

Public Methods

uint32_t data_size ()

Defined at line 60 of file ../../zircon/kernel/object/include/object/message_packet.h

zx_status_t CopyDataTo (user_out_ptr<char> buf)

Copies the packet's |data_size()| bytes to |buf|.

Returns an error if |buf| points to a bad user address.

Defined at line 64 of file ../../zircon/kernel/object/include/object/message_packet.h

uint32_t num_handles ()

Defined at line 68 of file ../../zircon/kernel/object/include/object/message_packet.h

Handle *const * handles ()

Defined at line 69 of file ../../zircon/kernel/object/include/object/message_packet.h

Handle ** mutable_handles ()

Defined at line 70 of file ../../zircon/kernel/object/include/object/message_packet.h

void set_owns_handles (bool own_handles)

Defined at line 72 of file ../../zircon/kernel/object/include/object/message_packet.h

zx_txid_t get_txid ()

zx_channel_call treats the leading bytes of the payload as

a transaction id of type zx_txid_t.

Defined at line 76 of file ../../zircon/kernel/object/include/object/message_packet.h

void set_txid (zx_txid_t txid)

Defined at line 84 of file ../../zircon/kernel/object/include/object/message_packet.h

zx_status_t Create (user_in_ptr<const char> data, uint32_t data_size, uint32_t num_handles, MessagePacketPtr * msg)

Creates a message packet containing the provided data and space for

|num_handles| handles. The handles array is uninitialized and must

be completely overwritten by clients.

Defined at line 86 of file ../../zircon/kernel/object/message_packet.cc

FidlHeader fidl_header ()

Defined at line 98 of file ../../zircon/kernel/object/include/object/message_packet.h

zx_status_t Create (user_in_ptr<const zx_channel_iovec_t> iovecs, uint32_t num_iovecs, uint32_t num_handles, MessagePacketPtr * msg)

static

Defined at line 102 of file ../../zircon/kernel/object/message_packet.cc

ktl::span<const uint8_t> start_of_payload ()

The first chunk of payload.

Eventually we'd want to actually get the whole message out.

Defined at line 107 of file ../../zircon/kernel/object/include/object/message_packet.h

zx_status_t Create (const char * data, uint32_t data_size, uint32_t num_handles, MessagePacketPtr * msg)

static

Defined at line 201 of file ../../zircon/kernel/object/message_packet.cc

Records

Friends

class MessagePacketDeleter