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 />
4 OCTETs 2 OCTETs n OCTETs<br />
+----------+----------+----------------------+<br />
| size | code | encoded-struct-data |<br />
+----------+----------+----------------------+<br />
uint32<br />
n = (size - 2)<br />
6.13 Fixed Width (5 octets)<br />
6.13.1 Type: bin40<br />
The bin40 type consists of five consecutive octets of opaque binary data.<br />
Wire Format<br />
1 OCTET 1 OCTET 1 OCTET 1 OCTET 1 OCTET<br />
+-----------+-----------+-------------+------------+------------+<br />
| octet-one | octet-two | octet-three | octet-four | octet-five |<br />
+-----------+-----------+-------------+------------+------------+<br />
6.13.2 Type: dec32<br />
The dec32 type is decimal value with a variable number of digits following the decimal point. It is encoded<br />
as an 8-bit unsigned integral value representing the number of decimal places. This is followed by the signed<br />
integral value encoded using a 32-bit two's complement representation in network byte order.<br />
The former value is referred to as the exponent of the divisor. The latter value is the mantissa. The decimal<br />
value is given by: mantissa / 10^exponent.<br />
Wire Format<br />
1 OCTET 4 OCTETs<br />
+----------+----------+<br />
| exponent | mantissa |<br />
+----------+----------+<br />
uint8 int32<br />
6.14 Fixed Width (9 octets)<br />
6.14.1 Type: bin72<br />
The bin72 type consists of nine consecutive octets of opaque binary data.<br />
<strong>AMQP</strong> <strong>Transport</strong> v. 1-0 Page 79 of 83