Esempio n. 1
0
        public override string ToString()
        {
            RandomAccess ra = RandomAccess.GetInstance();

            return(string.Format("[TPSPage Addr={0}, PageSize={1}, PageSizeUncompressed={2}, PageSizeUncompressedWithoutHeader={3}, RecordCount={4}, Flags={5}]", ra.toHex8(addr), ra.toHex4(pageSize), ra.toHex4(pageSizeUncompressed), ra.toHex4(pageSizeUncompressedWithoutHeader), ra.toHex4(recordCount), ra.toHex2(flags)));
        }
Esempio n. 2
0
 public TableIndex(ref RandomAccess ra)
 {
     _externalFile = ra.zeroTerminatedString();
     if (_externalFile.Length == 0)
     {
         int read = ra.leByte();
         if (read != 1)
         {
             throw new Exception("Bad Index Definition, missing 0x01 after zero string (" + ra.toHex2(read) + ")");
         }
     }
     _name         = ra.zeroTerminatedString();
     _flags        = ra.leByte();
     _fieldsInKey  = ra.leShort();
     _keyField     = new int[_fieldsInKey];
     _keyFieldFlag = new int[_fieldsInKey];
     for (int t = 0; t < _fieldsInKey; t++)
     {
         _keyField[t]     = ra.leShort();
         _keyFieldFlag[t] = ra.leShort();
     }
 }