示例#1
0
 internal MemoryCursor(MemoryMappedFile/*!*/ memoryMap)
     : this(memoryMap.Buffer, memoryMap.Length)
 {
 }
示例#2
0
 internal MetadataReader(string path)
 {
     MemoryMappedFile memmap = this.memmap = new MemoryMappedFile(path);
     try
     {
         this.cursor = new MemoryCursor(memmap);
         //^ base();
         ReadHeader();
     }
     catch
     {
         this.Dispose();
         throw;
     }
 }
示例#3
0
        public void Dispose()
        {
            if(this.memmap != null)
                this.memmap.Dispose();

            this.memmap = null;

            //this.cursor = null;
            this.sectionHeaders = null;
            this.identifierStringHeap = null;
            this.generalStringHeap = null;
            this.blobHeap = null;
            this.guidHeap = null;
            this.tables = null;
            this.tablesHeader = null;
            this.targetRuntimeVersion = null;
            this.tableSize = null;
            this.tableRefSize = null;
            this.tableOffset = null;
            this.HashValue = null;
        }
示例#4
0
 internal MemoryCursor(MemoryMappedFile /*!*/ memoryMap)
     : this(memoryMap.Buffer, memoryMap.Length)
 {
 }