private short ReadShort(RandomAccessFileOrArray stream) { if (isBigEndian) { return stream.ReadShort(); } else { return stream.ReadShortLE(); } }