AlbLib.IFF.IFFReader.ReadInt16 C# (CSharp) Method

ReadInt16() public method

Reads one int16. Automatically converted to little endian.
public ReadInt16 ( ) : short
return short
        public short ReadInt16()
        {
            rest -= 2;
            fileread += 2;
            return ToLittleEndian(reader.ReadInt16());
        }

Usage Example

示例#1
0
 /// <summary>
 /// Reads range from IFF stream.
 /// </summary>
 public ColorRange(IFFReader reader)
     : this()
 {
     pad1 = reader.ReadInt16();
     Rate = reader.ReadInt16();
     Flags = (ColorRangeFlags)reader.ReadInt16();
     Low = reader.ReadByte();
     High = reader.ReadByte();
 }
All Usage Examples Of AlbLib.IFF.IFFReader::ReadInt16