コード例 #1
0
        private void LoadLanguageGlobals(IReader reader)
        {
            // Find the language data
            ITag            languageTag;
            StructureLayout tagLayout;

            if (!FindLanguageTable(out languageTag, out tagLayout))
            {
                // No language data
                _languageLoader = new ThirdGenLanguagePackLoader();
                return;
            }

            // Read it
            reader.SeekTo(languageTag.MetaLocation.AsOffset());
            StructureValueCollection values = StructureReader.ReadStructure(reader, tagLayout);

            _languageInfo   = new ThirdGenLanguageGlobals(values, _segmenter, _header.LocalePointerConverter, _buildInfo);
            _languageLoader = new ThirdGenLanguagePackLoader(this, _languageInfo, _buildInfo, reader);
        }
コード例 #2
0
		private void LoadLanguageGlobals(IReader reader)
		{
			// Find the language data
			ITag languageTag;
			StructureLayout tagLayout;
			if (!FindLanguageTable(out languageTag, out tagLayout))
			{
				// No language data
				_languageLoader = new ThirdGenLanguagePackLoader();
				return;
			}

			// Read it
			reader.SeekTo(languageTag.MetaLocation.AsOffset());
			StructureValueCollection values = StructureReader.ReadStructure(reader, tagLayout);
			_languageInfo = new ThirdGenLanguageGlobals(values, _segmenter, _header.LocalePointerConverter, _buildInfo);
			_languageLoader = new ThirdGenLanguagePackLoader(this, _languageInfo, _buildInfo, reader);
		}