ReadFloatWord() public method

Reads the float word.
public ReadFloatWord ( uint mantissaSize, uint fractionSize ) : float
mantissaSize uint Size of the mantissa.
fractionSize uint Size of the fraction.
return float
コード例 #1
0
ファイル: SwfHeader.cs プロジェクト: foresightbrand/brandqq
        /// <summary>
        /// Reads the data from a binary file
        /// </summary>
        /// <param name="binaryReader">Binary reader.</param>
        public void ReadData(BufferedBinaryReader binaryReader)
        {
            this.signature = binaryReader.ReadString(3);
            this.version = binaryReader.ReadByte();

            if (this.version > MAX_VERSION)
                throw new InvalidSwfVersionException(this.version, MAX_VERSION);

            this.fileSize = binaryReader.ReadUInt32();
            this.rect = new Rect();
            this.rect.ReadData(binaryReader);
            binaryReader.SynchBits();
            this.fps = binaryReader.ReadFloatWord(8, 8);
            this.frames = binaryReader.ReadUInt16();
        }