public static UInt16 ReadUInt16(this System.IO.Stream stream, ElfDocumentHeader header) { byte[] buf = new byte[2]; stream.Read(buf, 0, 2); header.ResortArray(buf); return(BitConverter.ToUInt16(buf, 0)); }
public static Int64 ReadInt64(this System.IO.Stream stream, ElfDocumentHeader header) { byte[] buf = new byte[8]; stream.Read(buf, 0, 8); header.ResortArray(buf); return(BitConverter.ToInt64(buf, 0)); }