public ArchiveAccessor CreateDescriptor(string binaryFile, ArchiveEntry entry) { ArchiveAccessor result = new ArchiveAccessor(new SharedMemoryMappedFile(binaryFile), _binaryFile, entry); result._level = _level + 1; return(result); }
private ArchiveListingReaderV1(ArchiveAccessor accessor, Action<long> progressIncrement, Action<long> progressTotalChanged) { _accessor = accessor; _progressIncrement = progressIncrement; _progressTotalChanged = progressTotalChanged; _input = accessor.ExtractListing(); }
private ArchiveListingReaderV1(ArchiveAccessor accessor, Action <long> progressIncrement, Action <long> progressTotalChanged) { _accessor = accessor; _progressIncrement = progressIncrement; _progressTotalChanged = progressTotalChanged; _input = accessor.ExtractListing(); }
public ArchiveAccessor CreateDescriptor(ArchiveEntry entry) { ArchiveAccessor result = new ArchiveAccessor(null, _binaryFile, entry); result._level = _level + 1; return(result); }
public static ArchiveListing Read(ArchiveAccessor accessor, Action <long> progressIncrement, Action <long> progressTotalChanged) { using (ArchiveListingReaderV2 reader = new ArchiveListingReaderV2(accessor, progressIncrement, progressTotalChanged)) { ArchiveListing result = reader.Read(); return(result); } }
public static ArchiveListing Read(ArchiveAccessor accessor, Action<long> progressIncrement, Action<long> progressTotalChanged) { using (ArchiveListingReaderV2 reader = new ArchiveListingReaderV2(accessor, progressIncrement, progressTotalChanged)) { ArchiveListing result = reader.Read(); return result; } }
public UiArchives Build() { string[] lists = _gameLocation.EnumerateListingFiless().ToArray(); ConcurrentBag<UiArchiveNode> nodes = new ConcurrentBag<UiArchiveNode>(); Parallel.ForEach(lists, fileName => { ArchiveAccessor accessor = new ArchiveAccessor(GetBinaryFilePath(fileName), fileName); nodes.Add(new UiArchiveNode(accessor, null)); }); return new UiArchives(nodes.OrderBy(n=>n.Name).ToArray()); }
public UiArchives Build() { string[] lists = Directory.GetFiles(_gameLocation.SystemDirectory, "filelist*.bin"); ConcurrentBag<UiArchiveNode> nodes = new ConcurrentBag<UiArchiveNode>(); Parallel.ForEach(lists, fileName => { ArchiveAccessor accessor = new ArchiveAccessor(GetBinaryFilePath(fileName), fileName); nodes.Add(new UiArchiveNode(accessor, null)); }); return new UiArchives(nodes.ToArray()); }
private ArchiveListingWriterV2(ArchiveListing listing) { _listing = listing; _accessor = _listing.Accessor; }
public ArchiveAccessor CreateDescriptor(string binaryFile, ArchiveEntry entry) { ArchiveAccessor result = new ArchiveAccessor(new SharedMemoryMappedFile(binaryFile), _binaryFile, entry); result._level = _level + 1; return result; }
public ArchiveAccessor CreateDescriptor(ArchiveEntry entry) { ArchiveAccessor result = new ArchiveAccessor(null, _binaryFile, entry); result._level = _level + 1; return result; }
private ArchiveListingReaderV2(ArchiveAccessor accessor, Action <long> progressIncrement, Action <long> progressTotalChanged) { _accessor = accessor; _progressIncrement = progressIncrement; _progressTotalChanged = progressTotalChanged; }
public UiArchiveNode(ArchiveAccessor accessor, ArchiveListing parentListing) : base(accessor.ListingEntry.Name, UiNodeType.Archive) { _accessor = accessor; _parentListing = parentListing; }
public ArchiveListing(ArchiveAccessor accessor, IArchiveListingHeader header) : base(header.EntriesCount) { Accessor = accessor; Header = header; }
private ArchiveListingReaderV2(ArchiveAccessor accessor, Action<long> progressIncrement, Action<long> progressTotalChanged) { _accessor = accessor; _progressIncrement = progressIncrement; _progressTotalChanged = progressTotalChanged; }