示例#1
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 <SimpleArray <T> >(
                this.Pointer, // offset
                this.Count
                );
        }
示例#2
0
        /// <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 <SimpleArray <T> >(
                this.EntriesPointer, // offset
                this.EntriesCount
                );
        }
示例#3
0
        /// <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.ReadUInt32();
            this.EntriesCapacity = reader.ReadUInt32();

            // read reference data
            this.Entries = reader.ReadBlockAt <SimpleArray <T> >(
                this.EntriesPointer, // offset
                this.EntriesCapacity
                );

            // TODO: see https://github.com/carmineos/gta-toolkit/issues/13
        }
示例#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
                );
        }