27.01.2014 Views

AMQP Specification Transport

AMQP Specification Transport

AMQP Specification Transport

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>AMQP</strong> <strong>Specification</strong>.<br />

Basic-types<br />

Wire Format<br />

1 OCTET size OCTETs<br />

+---------+--------------+<br />

| size | utf8-unicode |<br />

+---------+--------------+<br />

uint8<br />

6.10.4 Type: str8-utf16<br />

The str8-utf16 type encodes up to 255 octets worth of UTF-16 unicode. The number of octets of unicode is<br />

first encoded as an 8-bit unsigned integral value. This is followed by the actual UTF-16 unicode. Note that<br />

the encoded size refers to the number of octets of unicode, not the number of characters since the UTF-16<br />

unicode will include at least two octets per unicode character.<br />

Wire Format<br />

1 OCTET size OCTETs<br />

+---------+---------------+<br />

| size | utf16-unicode |<br />

+---------+---------------+<br />

uint8<br />

6.11 Variable Width (2 octet size)<br />

6.11.1 Type: vbin16<br />

The vbin16 type encodes up to 65535 octets of opaque binary data. The number of octets is first encoded as<br />

a 16-bit unsigned integral value in network byte order. This is followed by the actual data.<br />

Wire Format<br />

2 OCTETs size OCTETs<br />

+----------+-------------+<br />

| size | octets |<br />

+----------+-------------+<br />

uint16<br />

6.11.2 Type: str16-latin<br />

The str16-latin type encodes up to 65535 octets of iso-8859-15 characters. The number of octets is first<br />

encoded as a 16-bit unsigned integral value in network byte order. This is followed by the actual characters.<br />

<strong>AMQP</strong> <strong>Transport</strong> v. 1-0 Page 75 of 83

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!