class MessagePacket
Defined at line 62 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 76 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 82 of file ../../zircon/kernel/object/include/object/message_packet.h
uint32_t num_handles ()
Defined at line 86 of file ../../zircon/kernel/object/include/object/message_packet.h
Handle *const * handles ()
Defined at line 89 of file ../../zircon/kernel/object/include/object/message_packet.h
Handle ** mutable_handles ()
Defined at line 90 of file ../../zircon/kernel/object/include/object/message_packet.h
void set_owns_handles (bool own_handles)
Defined at line 92 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 98 of file ../../zircon/kernel/object/include/object/message_packet.h
void set_txid (zx_txid_t txid)
Defined at line 100 of file ../../zircon/kernel/object/include/object/message_packet.h
FidlHeader fidl_header ()
Defined at line 110 of file ../../zircon/kernel/object/include/object/message_packet.h
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 122 of file ../../zircon/kernel/object/include/object/message_packet.h
zx_status_t Create (user_in_ptr<const char>data,uint32_tdata_size,uint32_tnum_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 143 of file ../../zircon/kernel/object/include/object/message_packet.h
zx_status_t Create (user_in_ptr<const zx_channel_iovec_t>iovecs,uint32_tnum_iovecs,uint32_tnum_handles,MessagePacketPtr *msg)
Defined at line 155 of file ../../zircon/kernel/object/include/object/message_packet.h
zx_status_t Create (const char *data,uint32_tdata_size,uint32_tnum_handles,MessagePacketPtr *msg)
Defined at line 168 of file ../../zircon/kernel/object/include/object/message_packet.h
Records
Friends
class MessagePacketDeleter