public int GetBigEndianInt( ) { if (Index + 3 >= this.DataLgth) { throw new Exception("no more bytes to read from array"); } var ip = IntParts.LoadBigEndianInt(this.Bytes, this.Index); this.Index += 4; return(ip.IntValue); }
public int PeekBigEndianInt(int Offset) { var ix = this.Index + Offset; if (ix + 3 >= this.DataLgth) { throw new Exception("no more bytes to read from array"); } var ip = IntParts.LoadBigEndianInt(this.Bytes, ix); return(ip.IntValue); }