示例#1
0
        /// <summary>
        /// Reads the data block.
        /// </summary>
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            int numElements1 = Convert.ToInt32(parameters[0]);
            int numElements2 = Convert.ToInt32(parameters[1]);

            Array1 = reader.ReadBlock <ResourceSimpleArray <T> >(numElements1);
            Array2 = reader.ReadBlock <ResourceSimpleArray <U> >(numElements2);
        }
示例#2
0
        /// <summary>
        /// Reads the data-block from a stream.
        /// </summary>
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            // read structure data
            this.Pointer    = reader.ReadUInt64();
            this.Count      = reader.ReadUInt32();
            this.Unknown_Ch = reader.ReadUInt32();

            // read reference data
            this.Entries = reader.ReadBlockAt <ResourceSimpleArray <T> >(
                this.Pointer, // offset
                this.Count
                );
        }
        /// <summary>
        /// Reads the data-block from a stream.
        /// </summary>
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            // read structure data
            this.EntriesPointer  = reader.ReadUInt64();
            this.EntriesCount    = reader.ReadUInt16();
            this.EntriesCapacity = reader.ReadUInt16();
            reader.Position     += 4;

            // read reference data
            this.Entries = reader.ReadBlockAt <ResourceSimpleArray <T> >(
                this.EntriesPointer, // offset
                this.EntriesCount
                );
        }
示例#4
0
        /// <summary>
        /// Reads the data-block from a stream.
        /// </summary>
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            // read structure data
            this.VFT            = reader.ReadUInt64();
            this.EntriesCount   = reader.ReadUInt32();
            this.Unknown_Ch     = reader.ReadUInt32();
            this.PartsPointer   = reader.ReadUInt64();
            this.OffsetsPointer = reader.ReadUInt64();
            this.PartsCount     = reader.ReadUInt32();
            this.Unknown_24h    = reader.ReadUInt32();
            this.Unknown_28h    = reader.ReadUInt32();
            this.Unknown_2Ch    = reader.ReadUInt32();

            // read reference data
            this.Parts = reader.ReadBlockAt <ResourceSimpleArray <SplitArrayPart <T> > >(
                this.PartsPointer, // offset
                this.PartsCount
                );
            this.Offsets = reader.ReadBlockAt <SimpleArray <uint> >(
                this.OffsetsPointer, // offset
                this.PartsCount
                );
        }