示例#1
0
 public static int ReadInt32(Stream stream)
 {
     byte[] buffer = new byte[4];
     stream.Read(buffer, 0, 4);
     return(BigEndianConverter.ToInt32(buffer, 0));
 }
示例#2
0
 public static int ReadInt32(byte[] buffer, ref int offset)
 {
     offset += 4;
     return(BigEndianConverter.ToInt32(buffer, offset - 4));
 }