Exemplo n.º 1
0
 private ResourceWriter(ModuleDef module, Stream stream, ResourceElementSet resources)
 {
     this.module      = module;
     this.typeCreator = new ResourceDataCreator(module);
     this.writer      = new BinaryWriter(stream);
     this.resources   = resources;
 }
Exemplo n.º 2
0
        private ResourceReader(ModuleDef module, IBinaryReader reader, CreateResourceDataDelegate createResourceDataDelegate)
        {
            this.reader = reader;
            this.resourceDataCreator        = new ResourceDataCreator(module);
            this.createResourceDataDelegate = createResourceDataDelegate;

            var stream = reader as IImageStream;

            this.baseFileOffset = stream == null ? 0 : (long)stream.FileOffset;
        }