?/TD>
Microsoft DirectX 9.0

Token Records


This section describes the format of the records for each of the record-bearing tokens. Information is divided into the following sections.

TOKEN_NAME

A variable-length record. The token is followed by a count value that specifies the number of bytes that follow in the name field. An ASCII name of length count completes the record.

FieldTypeSize (bytes)Contents
tokenWORD2TOKEN_NAME
countDWORD4Length of name field, in bytes
nameBYTE array countASCII name

TOKEN_STRING

A variable-length record. The token is followed by a count value that specifies the number of bytes that 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.

FieldTypeSize (bytes)Contents
tokenWORD2TOKEN_STRING
countDWORD4Length of string field in bytes
stringBYTE arraycountASCII string
terminatorDWORD4TOKEN_SEMICOLON or TOKEN_COMMA

TOKEN_INTEGER

A fixed length record. The token is followed by the integer value required.

FieldTypeSize (bytes)Contents
tokenWORD2TOKEN_INTEGER
valueDWORD4Single integer

TOKEN_GUID

A fixed-length record. The token is followed by the four data fields as defined by the OSF DCE standard.

FieldTypeSize (bytes)Contents
tokenWORD2TOKEN_GUID
data1DWORD4UUID data field 1
data2WORD2UUID data field 2
data3WORD2UUID data field 3
data4BYTE array8UUID data field 4

TOKEN_INTEGER_LIST

A variable-length record. The token is followed by a count value that specifies the number of integers that follow in the list field. For efficiency, consecutive integer lists should be compounded into a single list.

FieldTypeSize (bytes)Contents
tokenWORD2TOKEN_INTEGER_LIST
countDWORD4Number of integers in list field
listDWORD4 נcountInteger list

TOKEN_FLOAT_LIST

A variable-length record. The token is followed by a count value that specifies the number of floats or doubles that follow in the list field. The size of the floating point value (float or double) is determined by the value of float sizespecified in the file header. For efficiency, consecutive TOKEN_FLOAT_LISTs should be compounded into a single list.

FieldTypeSize (bytes)Contents
tokenWORD2TOKEN_FLOAT_LIST
countDWORD4Number of floats or doubles in list field
listfloat/double array4 or 8 נcountFloat or double list


© 2002 Microsoft Corporation. All rights reserved.