Mono.Debugger.TargetBinaryReader.PeekLeb128 C# (CSharp) Method

PeekLeb128() public method

public PeekLeb128 ( long pos, int &size ) : int
pos long
size int
return int
        public int PeekLeb128(long pos, out int size)
        {
            int ret = 0;
            int shift = 0;
            byte b;

            size = 0;
            do {
                b = PeekByte (pos + size);
                size++;

                ret = ret | ((b & 0x7f) << shift);
                shift += 7;
            } while ((b & 0x80) == 0x80);

            return ret;
        }

Same methods

TargetBinaryReader::PeekLeb128 ( long pos ) : int