public uint ReadDWordData(ref int offset) { if (offset + 4 > region.Length) { throw new EndOfAmlStreamException(); } uint result = ByteOrder.LittleEndianToHost(region.Read32(offset)); offset += 4; return(result); }
public ulong ReadQWordData(ref int offset) { if (offset + 8 > region.Length) { throw new EndOfAmlStreamException(); } ulong result = ByteOrder.LittleEndianToHost(region.Read64(offset)); offset += 8; return(result); }
public ushort ReadWordData(ref int offset) { if (offset + 2 > region.Length) { throw new EndOfAmlStreamException(); } ushort result = ByteOrder.LittleEndianToHost(region.Read16(offset)); offset += 2; return(result); }