wyUpdate.Common.ReadFiles.ReadShort C# (CSharp) Method

ReadShort() public static method

public static ReadShort ( Stream fs ) : short
fs Stream
return short
        public static short ReadShort(Stream fs)
        {
            byte[] tempBytes = new byte[2];

            //skip the "length of data" int value
            fs.Position += 4;

            ReadWholeArray(fs, tempBytes);
            return BitConverter.ToInt16(tempBytes, 0);
        }