AMQP Specification Transport
AMQP Specification Transport
AMQP Specification Transport
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
<strong>AMQP</strong> <strong>Specification</strong>.<br />
Basic-types<br />
Wire Format<br />
1 OCTET 1 OCTET 1 OCTET 1 OCTET<br />
+-----------+-----------+-----+------------------------+------------------------+<br />
| octet-one | octet-two | ... | octet-one-twenty-seven | octet-one-twenty-eight |<br />
+-----------+-----------+-----+------------------------+------------------------+<br />
6.10 Variable Width (1 octet size)<br />
6.10.1 Type: vbin8<br />
The vbin8 type encodes up to 255 octets of opaque binary data. The number of octets is first encoded as an<br />
8-bit unsigned integral value. This is followed by the actual data.<br />
Wire Format<br />
1 OCTET size OCTETs<br />
+---------+-------------+<br />
| size | octets |<br />
+---------+-------------+<br />
uint8<br />
6.10.2 Type: str8-latin<br />
The str8-latin type encodes up to 255 octets of iso-8859-15 characters. The number of octets is first encoded<br />
as an 8-bit unsigned integral value. This is followed by the actual characters.<br />
Wire Format<br />
1 OCTET size OCTETs<br />
+---------+------------------------+<br />
| size | characters |<br />
+---------+------------------------+<br />
uint8 iso-8859-15 characters<br />
6.10.3 Type: str8<br />
The str8 type encodes up to 255 octets worth of UTF-8 unicode. The number of octets of unicode is first<br />
encoded as an 8-bit unsigned integral value. This is followed by the actual UTF-8 unicode. Note that the<br />
encoded size refers to the number of octets of unicode, not necessarily the number of characters since the<br />
UTF-8 unicode may include multi-byte character sequences.<br />
<strong>AMQP</strong> <strong>Transport</strong> v. 1-0 Page 74 of 83