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