fidl.test.coding

PROTOCOLS

LinearizerTest

Defined in fidl.test.coding/extra_messages.test.fidl

VectorOfUint32

Request

NameType
v vector<uint32>

VectorOfString

Request

NameType
v vector<string>

Llcpp

Defined in fidl.test.coding/llcpp.test.fidl

Action

Request

NameType

Response

NameType
v int32

Example

Defined in fidl.test.coding/llcpp.test.fidl

TwoWay

Request

NameType
in string

Response

NameType
out string

OneWay

Request

NameType
in string

OnEvent

Response

NameType
out string

Simple

Defined in fidl.test.coding/llcpp.test.fidl

Echo

Replies with the value requested.

Request

NameType
request int32

Response

NameType
reply int32

Close

Never actually replies. Just closes instead.

Request

NameType

Response

NameType
v int32

Handles

Defined in fidl.test.coding/messages.test.fidl

NonnullableHandle

Request

NameType
h0 handle<handle>

MultipleNonnullableHandles

Request

NameType
data0 uint32
h0 handle<handle>
data1 uint64
h1 handle<handle>
h2 handle<handle>
data2 uint64

MultipleNullableHandles

Request

NameType
data0 uint32
h0 handle<handle>?
data1 uint64
h1 handle<handle>?
h2 handle<handle>?
data2 uint64

Arrays

Defined in fidl.test.coding/messages.test.fidl

ArrayOfNonnullableHandles

Request

NameType
handles handle[4]

ArrayOfNullableHandles

Request

NameType
handles handle[4]

ArrayOfArrayOfNonnullableHandles

Request

NameType
handles [4]

OutOfLineArrayOfNonnullableHandles

Request

NameType
handles NonnullableHandleArray?

Strings

Defined in fidl.test.coding/messages.test.fidl

UnboundedNonnullableString

Request

NameType
s0 string

UnboundedNullableString

Request

NameType
s0 string?

Bounded32NonnullableString

Request

NameType
s0 string[32]

Bounded32NullableString

Request

NameType
s0 string[32]?

MultipleNonnullableStrings

Request

NameType
s0 string
s1 string

MultipleNullableStrings

Request

NameType
s0 string?
s1 string?

Vectors

Defined in fidl.test.coding/messages.test.fidl

UnboundedNonnullableVectorOfHandles

Request

NameType
vh0 vector<handle>

UnboundedNullableVectorOfHandles

Request

NameType
vh0 vector<handle>?

Bounded32NonnullableVectorOfHandles

Request

NameType
vh0 vector<handle>[32]

Bounded32NullableVectorOfHandles

Request

NameType
vh0 vector<handle>[32]?

MultipleNonnullableVectorsOfHandles

Request

NameType
vh0 vector<handle>
vh1 vector<handle>

MultipleNullableVectorsOfHandles

Request

NameType
vh0 vector<handle>?
vh1 vector<handle>?

UnboundedNonnullableVectorOfUint32s

Request

NameType
vu0 vector<uint32>

UnboundedNullableVectorOfUint32s

Request

NameType
vu0 vector<uint32>?

Bounded32NonnullableVectorOfUint32s

Request

NameType
vu0 vector<uint32>[32]

Bounded32NullableVectorOfUint32s

Request

NameType
vu0 vector<uint32>[32]?

MultipleNonnullableVectorsOfUint32s

Request

NameType
vu0 vector<uint32>
vu1 vector<uint32>

MultipleNullableVectorsOfUint32s

Request

NameType
vu0 vector<uint32>?
vu1 vector<uint32>?

Unions

Defined in fidl.test.coding/messages.test.fidl

SingleHandleUnion

Request

NameType
u SingleHandleUnion

SingleHandleUnionPointer

Request

NameType
u SingleHandleUnion

MultipleHandlesUnion

Request

NameType
u MultipleHandlesUnion

MultipleHandlesUnionPointer

Request

NameType
u MultipleHandlesUnion?

Recursion

Request

NameType
u MaybeRecurse

Structs

Defined in fidl.test.coding/messages.test.fidl

Inline

Request

NameType
l0 Inline0

OutOfLine

Request

NameType
l0 OutOfLine0

STRUCTS

IntStruct

Defined in fidl.test.coding/extra_messages.test.fidl

NameTypeDescriptionDefault
v int64 No default

StructWithHandle

Defined in fidl.test.coding/extra_messages.test.fidl

NameTypeDescriptionDefault
h handle<handle> No default
foo int32 No default

StructWithManyHandles

Defined in fidl.test.coding/extra_messages.test.fidl

NameTypeDescriptionDefault
h1 handle<handle> No default
h2 handle<handle> No default
hs vector<handle>[2] No default

SampleStrictXUnionStruct

Defined in fidl.test.coding/extra_messages.test.fidl

NameTypeDescriptionDefault
xu SampleStrictXUnion No default

SampleXUnionStruct

Defined in fidl.test.coding/extra_messages.test.fidl

NameTypeDescriptionDefault
xu SampleXUnion No default

SampleNullableXUnionStruct

Defined in fidl.test.coding/extra_messages.test.fidl

NameTypeDescriptionDefault
opt_xu SampleXUnion? No default

LLCPPStyleUnionStruct

Defined in fidl.test.coding/extra_messages.test.fidl

NameTypeDescriptionDefault
u LLCPPStyleUnion No default

Int16BitsStruct

Defined in fidl.test.coding/extra_messages.test.fidl

NameTypeDescriptionDefault
bits Int16Bits No default

Int32BitsStruct

Defined in fidl.test.coding/extra_messages.test.fidl

NameTypeDescriptionDefault
bits Int32Bits No default

Int8EnumStruct

Defined in fidl.test.coding/extra_messages.test.fidl

NameTypeDescriptionDefault
e Int8Enum No default

Uint8EnumStruct

Defined in fidl.test.coding/extra_messages.test.fidl

NameTypeDescriptionDefault
e Uint8Enum No default

Int16EnumStruct

Defined in fidl.test.coding/extra_messages.test.fidl

NameTypeDescriptionDefault
e Int16Enum No default

Uint16EnumStruct

Defined in fidl.test.coding/extra_messages.test.fidl

NameTypeDescriptionDefault
e Uint16Enum No default

Int32EnumStruct

Defined in fidl.test.coding/extra_messages.test.fidl

NameTypeDescriptionDefault
e Int32Enum No default

Uint32EnumStruct

Defined in fidl.test.coding/extra_messages.test.fidl

NameTypeDescriptionDefault
e Uint32Enum No default

Int64EnumStruct

Defined in fidl.test.coding/extra_messages.test.fidl

NameTypeDescriptionDefault
e Int64Enum No default

Uint64EnumStruct

Defined in fidl.test.coding/extra_messages.test.fidl

NameTypeDescriptionDefault
e Uint64Enum No default

Uint32VectorStruct

Defined in fidl.test.coding/extra_messages.test.fidl

NameTypeDescriptionDefault
vec vector<uint32> No default

StringStruct

Defined in fidl.test.coding/extra_messages.test.fidl

NameTypeDescriptionDefault
str string No default

RecursiveOptional

Defined in fidl.test.coding/extra_messages.test.fidl

NameTypeDescriptionDefault
inner RecursiveOptional? No default

NonnullableHandleArray

Defined in fidl.test.coding/messages.test.fidl

NameTypeDescriptionDefault
handles handle[4] No default

MaybeRecurseHelper

Defined in fidl.test.coding/messages.test.fidl

NameTypeDescriptionDefault
more MaybeRecurse? No default

Inline3

Defined in fidl.test.coding/messages.test.fidl

NameTypeDescriptionDefault
padding uint32 No default
h handle<handle> No default

Inline2

Defined in fidl.test.coding/messages.test.fidl

NameTypeDescriptionDefault
padding uint64 No default
l3 Inline3 No default
h handle<handle> No default

Inline1

Defined in fidl.test.coding/messages.test.fidl

NameTypeDescriptionDefault
h handle<handle> No default
l2 Inline2 No default
padding uint64 No default

Inline0

Defined in fidl.test.coding/messages.test.fidl

NameTypeDescriptionDefault
padding uint64 No default
L1 Inline1 No default
h handle<handle> No default

OutOfLine3

Defined in fidl.test.coding/messages.test.fidl

NameTypeDescriptionDefault
padding uint32 No default
h handle<handle> No default

OutOfLine2

Defined in fidl.test.coding/messages.test.fidl

NameTypeDescriptionDefault
padding uint64 No default
l3_present OutOfLine3? No default
l3_absent OutOfLine3? No default
l3_inline OutOfLine3 No default

OutOfLine1

Defined in fidl.test.coding/messages.test.fidl

NameTypeDescriptionDefault
h handle<handle> No default
l2_present OutOfLine2? No default
l2_inline OutOfLine2 No default
l2_absent OutOfLine2? No default
padding uint64 No default

OutOfLine0

Defined in fidl.test.coding/messages.test.fidl

NameTypeDescriptionDefault
padding uint64 No default
l1_absent OutOfLine1? No default
l1_inline OutOfLine1 No default
h handle<handle> No default
l1_present OutOfLine1? No default

ENUMS

Int8Enum

Type: int8

Defined in fidl.test.coding/extra_messages.test.fidl

NameValueDescription
VALID_MIN -128
VALID_MAX 127
VALID_42 42

Uint8Enum

Type: uint8

Defined in fidl.test.coding/extra_messages.test.fidl

NameValueDescription
VALID_MIN 0
VALID_MAX 255
VALID_42 42

Int16Enum

Type: int16

Defined in fidl.test.coding/extra_messages.test.fidl

NameValueDescription
VALID_MIN -32768
VALID_MAX 32767
VALID_42 42

Uint16Enum

Type: uint16

Defined in fidl.test.coding/extra_messages.test.fidl

NameValueDescription
VALID_MIN 0
VALID_MAX 65535
VALID_42 42

Int32Enum

Type: int32

Defined in fidl.test.coding/extra_messages.test.fidl

NameValueDescription
VALID_MIN -2147483648
VALID_MAX 2147483647
VALID_42 42

Uint32Enum

Type: uint32

Defined in fidl.test.coding/extra_messages.test.fidl

NameValueDescription
VALID_MIN 0
VALID_MAX 4294967295
VALID_42 42

Int64Enum

Type: int64

Defined in fidl.test.coding/extra_messages.test.fidl

NameValueDescription
VALID_MIN -9223372036854775808
VALID_MAX 9223372036854775807
VALID_42 42

Uint64Enum

Type: uint64

Defined in fidl.test.coding/extra_messages.test.fidl

NameValueDescription
VALID_MIN 0
VALID_MAX 18446744073709551615
VALID_42 42

TABLES

SimpleTable

Defined in fidl.test.coding/extra_messages.test.fidl

OrdinalNameTypeDescription
1 x IntStruct
2
3
4
5 y IntStruct

OlderSimpleTable

Defined in fidl.test.coding/extra_messages.test.fidl

OrdinalNameTypeDescription
1 x IntStruct
2

NewerSimpleTable

Defined in fidl.test.coding/extra_messages.test.fidl

OrdinalNameTypeDescription
1 x IntStruct
2
3
4
5 y IntStruct
6 z IntStruct
7

TableOfStructWithHandle

Defined in fidl.test.coding/extra_messages.test.fidl

OrdinalNameTypeDescription
1 a StructWithHandle
2 b StructWithManyHandles

SmallerTableOfStructWithHandle

Defined in fidl.test.coding/extra_messages.test.fidl

OrdinalNameTypeDescription
1
2 b StructWithManyHandles

RecursiveTable

Defined in fidl.test.coding/extra_messages.test.fidl

OrdinalNameTypeDescription
1 inner RecursiveOptional

UNIONS

SampleUnion

Defined in fidl.test.coding/extra_messages.test.fidl

NameTypeDescription
i IntStruct
st SimpleTable
raw_int int32

SampleXUnion

Defined in fidl.test.coding/extra_messages.test.fidl

NameTypeDescription
i IntStruct
st SimpleTable
raw_int int32

SampleStrictXUnion

Defined in fidl.test.coding/extra_messages.test.fidl

NameTypeDescription
i IntStruct
st SimpleTable
raw_int int32

LLCPPStyleUnion

Defined in fidl.test.coding/extra_messages.test.fidl

NameTypeDescription
primitive int32

SingleHandleUnion

Defined in fidl.test.coding/messages.test.fidl

NameTypeDescription
h0 handle<handle>

MultipleHandlesUnion

Defined in fidl.test.coding/messages.test.fidl

NameTypeDescription
h handle<handle>
hs handle[2]
hss [2]

MaybeRecurse

Defined in fidl.test.coding/messages.test.fidl

NameTypeDescription
h handle<handle>
more MaybeRecurseHelper

BITS

Int16Bits

Type: uint16

NameValueDescription
BIT_1 1
BIT_3 4
BIT_5 16

Int32Bits

Type: uint32

NameValueDescription
BIT_7 64
BIT_12 2048
BIT_27 67108864