protected void BuildIndexHeader ( int Count , int Offsize , int First ) { // Add the count field OutputList . addLast ( new UInt16Item ( ( char ) Count ) ) ; // count // Add the offsize field OutputList . addLast ( new UInt8Item ( ( char ) Offsize ) ) ; // offSize // Add the first offset according to the offsize switch ( Offsize ) { case 1 : OutputList . addLast ( new UInt8Item ( ( char ) First ) ) ; // first offset break ; case 2 : OutputList . addLast ( new UInt16Item ( ( char ) First ) ) ; // first offset break ; case 3 : OutputList . addLast ( new UInt24Item ( ( char ) First ) ) ; // first offset break ; case 4 : OutputList . addLast ( new UInt32Item ( ( char ) First ) ) ; // first offset break ; default : break ; } }
Function Build the header of an index