Exemplo n.º 1
0
        public override void ReadData(GrnBinaryReader reader, int directoryOffset)
        {
            reader.Seek((int)(this.Offset + directoryOffset), SeekOrigin.Begin);
            Int32 numString        = reader.ReadInt32();
            Int32 stringDataLength = reader.ReadInt32();

            Strings.Capacity = numString;
            for (int i = 0; i < numString; i++)
            {
                Strings.Add(reader.ReadString());
            }

            //reader.ReadBytes((-stringDataLength) & 3); // padding
        }
        public override void ReadData(GrnBinaryReader reader, int directoryOffset)
        {
            reader.Seek((int)(this.Offset + directoryOffset), SeekOrigin.Begin);
            Int32 numString = reader.ReadInt32();
            Int32 stringDataLength = reader.ReadInt32();

            Strings.Capacity = numString;
            for (int i = 0; i < numString; i++)
            {
                Strings.Add(reader.ReadString());
            }

            //reader.ReadBytes((-stringDataLength) & 3); // padding
        }