コード例 #1
0
ファイル: UnsupportedTag.cs プロジェクト: scottstamp/Sulakore
        public UnsupportedTag(ShockwaveFlash flash, RecordHeader header, bool forceLong = false)
        {
            _flash     = flash;
            _forceLong = forceLong;

            Header   = header;
            Position = _flash.Position;

            Data = _flash.ReadUI8Block((int)header.Length);
        }
コード例 #2
0
        public DefineBinaryDataTag(ShockwaveFlash flash, RecordHeader header)
        {
            _flash = flash;

            Position = flash.Position;
            Header   = header;

            CharacterId = _flash.ReadUI16();
            Reserved    = _flash.ReadUI32();
            _data       = _flash.ReadUI8Block((int)header.Length - 6);
        }
コード例 #3
0
        public Rect(ShockwaveFlash flash)
        {
            int pos   = flash.Position;
            int nBits = (int)flash.ReadUB(5);

            _x          = flash.ReadSB(nBits);
            _twipsWidth = flash.ReadSB(nBits);
            _width      = _twipsWidth / 20;

            _y           = flash.ReadSB(nBits);
            _twipsHeight = flash.ReadSB(nBits);
            _height      = _twipsHeight / 20;

            _data = flash.ReadUI8Block(flash.Position - pos, pos);
        }