PERWAPI.MetaDataStringStream.GetStringLength C# (CSharp) Method

GetStringLength() private method

private GetStringLength ( ) : uint
return uint
        private uint GetStringLength()
        {
            uint b = ReadByte();
            uint num = 0;
            if (b <= 0x7F) {
                num = b;
            } else if (b >= 0xC0) {
                num = (uint)(((b - 0xC0) << 24) + (ReadByte() << 16) + (ReadByte() << 8) + ReadByte());
            } else { // (b >= 0x80) && (b < 0xC0)
                num = (uint)((b - 0x80) << 8) + ReadByte();
            }
            return num;
        }