예제 #1
0
        public CastMemberPropertiesChunk(ShockwaveReader input, ChunkHeader header)
            : base(header)
        {
            Type = (CastType)input.ReadBigEndian <int>();
            input.ReadBigEndian <int>();
            int dataLength = input.ReadBigEndian <int>();

            Remnants.Enqueue(input.ReadBigEndian <int>());
            Remnants.Enqueue(input.ReadBigEndian <int>());
            Remnants.Enqueue(input.ReadBigEndian <int>());
            Remnants.Enqueue(input.ReadBigEndian <int>());
            Remnants.Enqueue(input.ReadBigEndian <int>());

            Common     = new CommonMemberProperties(input);
            Properties = ReadTypeProperties(input, dataLength);
        }
예제 #2
0
        public CastMemberPropertiesChunk(ref ShockwaveReader input, ChunkHeader header)
            : base(header)
        {
            input.IsBigEndian = true;

            Type = (CastType)input.ReadInt32();
            input.ReadInt32();
            int dataLength = input.ReadInt32();

            Remnants.Enqueue(input.ReadInt32()); //TOOD: Why is DIRAPI checking this 24/7 if its a constant(?) 0x14
            Remnants.Enqueue(input.ReadInt32());
            Remnants.Enqueue(input.ReadInt32());
            Remnants.Enqueue(input.ReadInt32());
            Remnants.Enqueue(input.ReadInt32());

            Common     = new CommonMemberProperties(ref input);
            Properties = ReadTypeProperties(ref input, dataLength);
        }