edit | blame | history | raw

---

title: Common Structures

Structure: Buffer

Example

Hex View  00 01 02 03 04 05 06 07  08 09 0A 0B 0C 0D 0E 0F
00000000  04 00 01 02 04 05                                ......

Parsing

Name Description Type
Length The length of the buffer, in bytes. u16
Data The raw data of the buffer. u8[Length]

Structure: String

A null-terminated set of UTF8 bytes.

Example

Hex View  00 01 02 03 04 05 06 07  08 09 0A 0B 0C 0D 0E 0F
00000000  0E 00 4C 6F 67 69 6E 50  72 6F 74 6F 63 6F 6C 00  ..LoginProtocol.

Parsing

Name Description Type
Buffer The UTF-8 encoded, null-terminated string data as a buffer. Buffer

Structure: List<T>

Example

Hex View  00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
00000000  01 00 00 00 12 00 43 6C 69 65 6E 74 56 65 72 73  ......ClientVers
00000010  69 6F 6E 49 6E 66 6F 00 01 00                    ionInfo...

Parsing

Name Description Type
Number of Items The number of individual items in the list. u32
Items The items in the list. T[Number of Items]

Structure: StationURL

A RendezVous URI, with at least protocol (prudp:), address (e.g., address=127.0.0.1), and port (e.g. port=6005).

Example

Hex View  00 01 02 03 04 05 06 07  08 09 0A 0B 0C 0D 0E 0F
00000000  70 72 75 64 70 3A 2F 61  64 64 72 65 73 73 3D 31  prudp:/address=1
00000010  32 37 2E 30 2E 30 2E 31  3B 70 6F 72 74 3D 36 30  27.0.0.1;port=60
00000020  30 35                                             05

Parsing

Name Description Type
URL The URL of the station. String

Structure: UUID

A platform-wide unique identifier for any sort of resource.

Name Description Type
Bytes The bytes that make up this UUID [16]u8