예제 #1
0
 public static short ReadInt16(byte[] buffer, ref int offset)
 {
     offset += 2;
     return(BigEndianConverter.ToInt16(buffer, offset - 2));
 }
예제 #2
0
 public static short ReadInt16(Stream stream)
 {
     byte[] buffer = new byte[2];
     stream.Read(buffer, 0, 2);
     return(BigEndianConverter.ToInt16(buffer, 0));
 }