INTEGER and LENGTH Fields

Integer and Length fields are big endian binary encodings of numeric values. The byteLength attribute in a template field definition can act as a modifier to restrict the number of bytes used to encode the integer value. Unsigned integers are encoded as zero or positive-only values. The top-most bit is part of the magnitude of the value. Signed integers are encoded as two’s-complement binary values with the top-most bit as the sign bit. Length fields are unsigned integer values used to indicate the length of a Sequence field.

The table below shows the types of integer or length fields.

Table 1. Types of Integers / Length Fields
Integer Field TypeByte LengthEncodingExample
uInt3218 bit unsigned integer<uInt32 name="MDPriceLevel" id="1023" byteLength="1"/>
uInt324 or omitted32 bit unsigned integer<uInt32 name="MDEntrySize" id="271" byteLength="4"/>
uInt648 or omitted64 bit unsigned integer<uInt64 name="SendingTime" id="52"/>
int3218 bit signed integer<int32 name="MDPriceLevel" id="1023" byteLength="1"/>
int324 or omitted32 bit signed integer<int32 name="MDEntrySize" id="271"/>
int648 or omitted64 bit signed integer<int64 name="SendingTime" id="52" byteLength="8">
length18 bit unsigned integer<length name="NoMDEntries" id="268" byteLength="1"/>

The table below shows the minimum and maximum values for different integer data types.

Table 2. Integer Data Type Min / Max Values
TypeMinMax
uInt32 with byteLength="1"0255
uInt3204,294,967,295
uInt64018,446,744,073,709,551,615
int32 with byteLength="1"-128127
int32-2,147,483,6482,147,483,647
int64- 9,223,372,036,854,775,8089,223,372,036,854,775,807
length with byteLength="1"0255
Cboe Titanium Cboe Global Indices Feed Specification - INTEGER and LENGTH Fields | Cboe