2.2.4.2.1.2 Fixed Length Token(xx11xxxx)

This class of token is followed by 1, 2, 4, or 8 bytes of data. No length specification follows this token because the length of its associated data is encoded in the token itself. The different fixed data-length token definitions take the form of one of the following bit sequences, depending on whether the token is followed by 1, 2, 4, or 8 bytes of data.

0

1

2

3

4

5

6

7

Description

x

x

1

1

0

0

x

x

Token is followed by 1 byte of data.

x

x

1

1

0

1

x

x

Token is followed by 2 bytes of data.

x

x

1

1

1

0

x

x

Token is followed by 4 bytes of data.

x

x

1

1

1

1

x

x

Token is followed by 8 bytes of data.

In the diagram above, x denotes a bit position that can contain the bit value 0 or 1.

Fixed-length tokens are used by the following data types: bigint, int, smallint, tinyint, float, real, money, smallmoney, datetime, smalldatetime, and bit. The type definition is always represented in COLMETADATA and ALTMETADATA data streams as a single byte Type. Additional details are specified in section 2.2.5.3.1.

Show: