public bool Read(BinaryReader br) { long position = br.BaseStream.Position; bool isfooter = true; for (int i = 0; i < 8; i++) { if (!br.ReadByte().Equals(footer[i])) { isfooter = false; break; } } if (isfooter) { return(false); } br.BaseStream.Position = position; type = CBF.SwapShort(br.ReadInt16()); precision = br.ReadByte(); if (type != -99 && type != -98 && type != 0) { size = CBF.SwapShort(br.ReadInt16()); } name = String.Empty; byte b; while ((b = br.ReadByte()) != 0) { name += (char)b; } return(true); }
public void Read(BinaryReader br) { hid = (uint)br.ReadInt32(); s1 = CBF.SwapShort(br.ReadInt16()); s2 = CBF.SwapShort(br.ReadInt16()); br.BaseStream.Position = 4; b1 = br.ReadByte(); b2 = br.ReadByte(); b3 = br.ReadByte(); b4 = br.ReadByte(); }