FSO.Files.Formats.IFF.Chunks.TTABFieldEncode.ReadField C# (CSharp) Méthode

ReadField() private méthode

private ReadField ( bool big ) : long
big bool
Résultat long
        private long ReadField(bool big)
        {
            if (ReadBit() == 0) return 0;

            uint code = ReadBits(2);
            byte width = (big)?widths2[code]:widths[code];
            long value = ReadBits(width);
            value |= -(value & (1 << (width-1)));

            return value;
        }