示例#1
0
        private static UInt32 ReadEncodedInteger(RecordReader reader)
        {
            byte b = reader.ReadByte();

            if (b == 0x81)
            {
                return(reader.ReadUInt16());
            }
            else if (b == 0x84)
            {
                return(reader.ReadUInt24());
            }
            else if (b == 0x88)
            {
                return(reader.ReadUInt32());
            }
            else
            {
                return(b);
            }
        }
示例#2
0
 private static UInt32 ReadEncodedInteger(RecordReader reader)
 {
     byte b = reader.ReadByte();
     if (b == 0x81)
         return reader.ReadUInt16();
     else if (b == 0x84)
         return reader.ReadUInt24();
     else if (b == 0x88)
         return reader.ReadUInt32();
     else
         return b;
 }