FSO.Files.Utils.IoBuffer.ReadVarLen C# (CSharp) Метод

ReadVarLen() публичный Метод

Reads a variable length unsigned integer from the current stream.
public ReadVarLen ( ) : uint
Результат uint
        public uint ReadVarLen()
        {
            uint result = 0;
            int shift = 0;
            byte read = 0x80;
            while ((read&0x80) > 0)
            {
                read = ReadByte();
                result |= (uint)((read & 0x7F) << shift);
                shift += 7;
            }
            return result;
        }