Example #1
0
            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);
            }
Example #2
0
            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);
            }
Example #3
0
            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);
            }