Пример #1
0
        /// <summary>
        ///     Saves the resource table back to the file.
        /// </summary>
        /// <param name="table">The resource table to save.</param>
        /// <param name="stream">The stream to save to.</param>
        public void SaveResourceTable(ResourceTable table, IStream stream)
        {
            if (_layoutTable == null || _gestalt == null)
            {
                return;
            }

            IList <ResourcePointer> pointers = _gestalt.SaveResources(table.Resources, stream);

            _layoutTable.SavePointers(pointers, stream);
            _layoutTable.SavePages(table.Pages, stream);
        }
Пример #2
0
        /// <summary>
        ///     Saves the resource table back to the file.
        /// </summary>
        /// <param name="table">The resource table to save.</param>
        /// <param name="stream">The stream to save to.</param>
        public void SaveResourceTable(ResourceTable table, IStream stream)
        {
            if (_layoutTable == null || _gestalt == null)
            {
                return;
            }

            var pointers = _gestalt.SaveResources(table.Resources, stream);

            _layoutTable.SavePointers(pointers, stream);
            _layoutTable.SaveSizes(table.Sizes, stream);
            _layoutTable.SavePages(table.Pages, pointers, stream);

            _gestalt.SavePredictions(table.Predictions, stream);
        }