fidl library

*<Null safety>*

Classes

ArrayType<T, I extends Iterable<T>>
AsyncBinding<T>

Listens for messages and dispatches them to an implementation of T.

AsyncProxy<T>

Sends messages to a remote implementation of T

AsyncProxyController<T>

A controller for Future based proxies.

Binding<T>

Listens for messages and dispatches them to an implementation of T.

Bits
BitsType<T extends Bits>
BoolType
ChannelType
Decoder
Encoder
Enum
EnumType<T extends Enum>
EnvelopeHeader
EventPairType
FidlType<T, I extends Iterable<T>>
Float32Type
Float64Type
HandleType
Int8Type
Int16Type
Int32Type
Int64Type
InterfaceHandle<T>

A channel over which messages from interface T can be sent. ...

InterfaceHandleType<T>
InterfacePair<T>
InterfaceRequest<T>

A channel over which messages from interface T can be received. ...

InterfaceRequestType<T>
MemberType<T>
Message
MethodType
NullableChannelType
NullableEventPairType
NullableHandleType
NullableInterfaceHandleType<T>
NullableInterfaceRequestType<T>
NullableSocketType
NullableStringType
NullableUnionType<T extends XUnion>
NullableVectorType<T, I extends Iterable<T>>
NullableVmoType
PointerType<T>
Proxy<T>

Sends messages to a remote implementation of T

ProxyController<T>

The control plane for an interface proxy. ...

ProxyError

The object that ProxyController<T>.error completes with when there is an error.

Service

Representation of a service that all T implementations should extend from.

ServiceData<T>

Exposes the ability to get a hold of the service runtime name and bindings.

SimpleFidlType<T>
SocketType
StatusType
StringType
Struct
StructType<T extends Struct>
Table
TableType<T extends Table>
Uint8Type
Uint16Type
Uint32Type
Uint64Type
UnionType<T extends XUnion>
UnknownRawData

UnknownRawData is a container for the raw bytes and handles of an unknown envelope. It has an associate UnknownRawDataType that allows encoding/ decoding instances of this class.

UnknownRawDataType

This encodes/decodes the UnknowRawData assuming it is in an envelope, i.e. payload bytes followed directly by handles.

VectorType<T, I extends Iterable<T>>
VmoType
XUnion

Constants

epitaphOrdinal const int
kAllocAbsent const int
kAllocPresent const int
kHandleAbsent const int
kHandlePresent const int
kMagicNumberInitial const int
kMessageFlagOffset const int
kMessageHeaderSize const int
kMessageMagicOffset const int
kMessageOrdinalOffset const int
kMessageTxidOffset const int

Functions

decodeMessage<T>(Message message, int inlineSize, MemberType typ) T

Decodes a single FIDL message. Most messages can be decoded using this entry point. Such a messages generally take the form of header bytes followed immediately by the encoded message bytes.

decodeMessageWithCallback<A>(Message message, int inlineSize, A f(Decoder decoder)) A

Decodes a FIDL message with multiple parameters. Such messages generally take the form of header bytes followed by the encoded bytes of each parameter in turn. The generated bindings should then wrap the resulting parameter types into a single “Async___Class” inside the callback function.

Enums

FidlErrorCode
InterfaceState

The different states that an AsyncBinding or AsyncProxy can be in.

Typedefs

BitsFactory<T>(int value) T
EnumFactory<T>(int value) T
EpitaphHandler(int statusCode) void
MessageSink(Message message) void
StructDecode<T>(Decoder decoder, int offset) T
TableFactory<T>(Map<int, dynamic> argv, [Map<int, UnknownRawData> unknownData]) T
XUnionFactory<T>(int index, Object data) T

Exceptions / Errors

FidlError
FidlRangeCheckError
FidlStateException

An exception that‘s thrown if an AsyncBinding or AsyncProxy isn’t in the required state for the requested operation.

MethodException<T>