Encoder class

Constructors

Encoder (WireFormat wireFormat)

Properties

data ↔ ByteData

read / write

hashCode → int

The hash code for this object.
read-only, inherited

messageOutgoingMessage

read-only

runtimeType → Type

A representation of the runtime type of the object.
read-only, inherited

wireFormatWireFormat

read / write

Methods

addHandleDisposition(HandleDisposition value) void
alloc(int size, int nextOutOfLineDepth) int
countHandles() int
encodeBool(bool value, int offset) void
encodeFloat32(double value, int offset) void
encodeFloat64(double value, int offset) void
encodeInt8(int value, int offset) void
encodeInt16(int value, int offset) void
encodeInt32(int value, int offset) void
encodeInt64(int value, int offset) void
encodeMessageHeader(int ordinal, int txid, CallStrictness strictness) void
encodeUint8(int value, int offset) void
encodeUint16(int value, int offset) void
encodeUint32(int value, int offset) void
encodeUint64(int value, int offset) void
encodeUnknownMethodResponse(int methodOrdinal, int txid) void

Produces a response for an UnknownMethod which was called with the given ordinal value for the method and the given transaction ID. This produces both a message header and an encoded body. The header will have the provided ordinal and txid and CallStrictness.flexible (this should never be used with a strict method). The body will contain a union with ordinal 3 and a value of type zx_status with the NOT_SUPPORTED error code.

nextOffset() int
noSuchMethod(Invocation invocation) dynamic

Invoked when a non-existent method or property is accessed.
inherited

toString() String

A string representation of this object.
inherited

Operators

operator ==(Object other) bool

The equality operator.
inherited