This section describes the format of the records for each of the record-bearing tokens.
TOKEN_NAME
Field | Type | Size (bytes) | Contents |
token | DWORD | 4 | TOKEN_NAME |
count | DWORD | 4 | Length of name field in bytes |
name | BYTE array | count | ASCII name |
TOKEN_NAME is a variable length record. The token is followed by a count value which specifies the number of bytes which follow in the name field. An ASCII name of length count completes the record.
TOKEN_STRING
Field | Type | Size (bytes) | Contents |
token | DWORD | 4 | TOKEN_STRING |
count | DWORD | 4 | Length of string field in bytes |
string | BYTE array | count | ASCII string |
terminator | DWORD | 4 | TOKEN_SEMICOLON or TOKEN_COMMA |
TOKEN_STRING is a variable length record. The token is followed by a count value which specifies the number of bytes which follow in the string field. An ASCII string of length count continues the record which is completed by a terminating token. The choice of terminator is determined by syntax issues discussed elsewhere.
TOKEN_INTEGER
Field | Type | Size (bytes) | Contents |
token | DWORD | 4 | TOKEN_INTEGER |
value | DWORD | 4 | Single integer |
TOKEN_INTEGER is a fixed length record. The token is followed by the integer value required.
TOKEN_GUID
Field | Type | Size (bytes) | Contents |
token | DWORD | 4 | TOKEN_GUID |
data1 | DWORD | 4 | uuid data field 1 |
data2 | WORD | 2 | uuid data field 2 |
data3 | WORD | 2 | uuid data field 3 |
data4 | BYTE array | 8 | uuid data field 4 |
TOKEN_GUID is a fixed length record. The token is followed by the four data fields as defined by the OSF DCE standard.
TOKEN_INTEGER_LIST
Field | Type | Size (bytes) | Contents |
token | DWORD | 4 | TOKEN_INTEGER_LIST |
count | DWORD | 4 | Number of integers in list field |
list | DWORD array | 4 x count | Integer list |
TOKEN_INTEGER_LIST is a variable length record. The token is followed by a count value which specifies the number of integers which follow in the list field. For efficiency, consecutive integer lists should be compounded into a single list.
TOKEN_REALNUM_LIST
Field | Type | Size (bytes) | Contents |
token | DWORD | 4 | TOKEN_REALNUM_LIST |
count | DWORD | 4 | Number of floats or doubles in list field |
list | float/double array | 4 or 8 x count | Float or double list |
TOKEN_REALNUM_LIST is a variable length record. The token is followed by a count value which specifies the number of floats or doubles which follow in the list field. The size of the floating point value (float or double) is determined by the value of float size specified in the file header discussed elsewhere. For efficiency, consecutive realnum lists should be compounded into a single list.