Class MemoryMappedFileService
- Namespace
- AsmResolver.IO
- Assembly
- AsmResolver.dll
Provides an implementation of the IFileService interface, which maps any requested file into memory, and keeps track of any of the instances it creates.
public class MemoryMappedFileService : IFileService, IDisposable
- Inheritance
-
MemoryMappedFileService
- Implements
- Inherited Members
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
GetOpenedFiles()
Gets a collection of files currently opened by this file service.
public IEnumerable<string> GetOpenedFiles()
Returns
- IEnumerable<string>
The paths of the files that were opened.
InvalidateFile(string)
If the provided file path was opened by this file service, closes the provided file and removes it from the cache.
public void InvalidateFile(string filePath)
Parameters
filePath
stringThe path of the file to close.
OpenFile(string)
Opens a file at the provided file path.
public IInputFile OpenFile(string filePath)
Parameters
filePath
stringThe path to the file to open.
Returns
- IInputFile
The opened file.