Recurity.Swf.KerningRecord.Parse C# (CSharp) Method

Parse() public method

Parses this object out of a stream
public Parse ( Stream input, bool fontFlagsWideCodes ) : void
input Stream
fontFlagsWideCodes bool
return void
        public void Parse(Stream input, bool fontFlagsWideCodes)
        {
            BinaryReader br = new BinaryReader(input);

            if (fontFlagsWideCodes)
            {
                this._wideFontKerningCode1 = br.ReadUInt16();
                this._wideFontKerningCode2 = br.ReadUInt16();
            }
            else
            {
                this._fontKerningCode1 = br.ReadByte();
                this._fontKerningCode2 = br.ReadByte();
            }

            this._fontKerningAdjustment = br.ReadInt16();
        }