示例#1
0
        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);
        }
示例#2
0
        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);
        }