Exemplo n.º 1
0
        public int InjectExtractedResourcePage(ResourcePage resourcePage, ExtractedPage extractedPage, IStream stream)
        {
            if (extractedPage == null)
            {
                throw new ArgumentNullException("extractedPage");
            }

            var injector  = new ResourcePageInjector(_cacheFile);
            var rawOffset = injector.InjectPage(stream, resourcePage, extractedPage.ExtractedPageData);

            _extractedResourcePages[extractedPage] = extractedPage.ResourcePageIndex;

            return(rawOffset);
        }
Exemplo n.º 2
0
		public int InjectExtractedResourcePage(ResourcePage resourcePage, ExtractedPage extractedPage, IStream stream)
		{
			if (extractedPage == null)
				throw new ArgumentNullException("extractedPage");

			var injector = new ResourcePageInjector(_cacheFile);
			var rawOffset = injector.InjectPage(stream, resourcePage, extractedPage.ExtractedPageData);
			
			_extractedResourcePages[extractedPage] = extractedPage.ResourcePageIndex;

			return rawOffset;
		}
Exemplo n.º 3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="extractedPage"></param>
 /// <param name="page"></param>
 public void AddExtractedResourcePage(ExtractedPage extractedPage)
 {
     _extractedResourcePageByPageIndex[extractedPage.ResourcePageIndex] = extractedPage;
 }
Exemplo n.º 4
0
		/// <summary>
		///     
		/// </summary>
		/// <param name="extractedPage"></param>
		/// <param name="page"></param>
		public void AddExtractedResourcePage(ExtractedPage extractedPage)
		{
			_extractedResourcePageByPageIndex[extractedPage.ResourcePageIndex] = extractedPage;
		}