OpenHome.Git.Pack.ReadDeltaOffset C# (CSharp) Method

ReadDeltaOffset() static private method

static private ReadDeltaOffset ( BinaryReader aReader ) : uint
aReader System.IO.BinaryReader
return uint
        internal static uint ReadDeltaOffset(BinaryReader aReader)
        {
            byte b = aReader.ReadByte();

            uint offset = b & 0x7fu;

            while ((b & 0x80u) != 0)
            {
                b = aReader.ReadByte();
                offset = ((offset + 1) << 7) + (uint)(b & 0x7f);
            }

            return (offset);
        }