MiscUtil.IO.EndianBinaryReader.ReadInt16 C# (CSharp) 메소드

ReadInt16() 공개 메소드

Reads a 16-bit signed integer from the stream, using the bit converter for this reader. 2 bytes are read.
public ReadInt16 ( ) : short
리턴 short
        public short ReadInt16()
        {
            ReadInternal(buffer, 2);
            return bitConverter.ToInt16(buffer, 0);
        }

Usage Example

예제 #1
0
 protected override void Parse(EndianBinaryReader r)
 {
     EID = ReadVarInt(r);
     Velocity = new CoordDouble();
     Velocity.X = ((double)r.ReadInt16()) / scale;
     Velocity.Y = ((double)r.ReadInt16()) / scale;
     Velocity.Z = ((double)r.ReadInt16()) / scale;
 }
All Usage Examples Of MiscUtil.IO.EndianBinaryReader::ReadInt16