Beispiel #1
0
		public void ReadRequestedStrings(IReader reader, int tableOffset, CachedStringTable output)
		{
			int lastEnd = -1;
			foreach (int offset in _requestedStrings)
			{
				if (offset <= lastEnd)
					continue;

				reader.SeekTo(tableOffset + offset);
				string str = reader.ReadAscii();
				output.CacheString(offset, str);
				lastEnd = offset + str.Length;
			}
		}
Beispiel #2
0
        public void ReadRequestedStrings(IReader reader, int tableOffset, CachedStringTable output)
        {
            int lastEnd = -1;

            foreach (int offset in _requestedStrings)
            {
                if (offset <= lastEnd)
                {
                    continue;
                }

                reader.SeekTo(tableOffset + offset);
                string str = reader.ReadAscii();
                output.CacheString(offset, str);
                lastEnd = offset + str.Length;
            }
        }
Beispiel #3
0
        public void ReadRequestedStrings(IReader reader, int tableOffset, CachedStringTable output)
        {
            uint lastEnd = 0;

            foreach (uint offset in _requestedStrings)
            {
                if (offset < lastEnd)
                {
                    continue;
                }

                reader.SeekTo(tableOffset + offset);
                string str = reader.ReadWin1252();
                output.CacheString(offset, str);
                lastEnd = offset + (uint)str.Length;
            }
        }