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); } }
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; }