public static ModuleDefinition ReadModule(Stream stream, ReaderParameters parameters) { Mixin.CheckStream(stream); Mixin.CheckReadSeek(stream); return(ReadModule(Disposable.NotOwned(stream), "", parameters)); }
public void Write(Stream stream, WriterParameters parameters) { Mixin.CheckStream(stream); Mixin.CheckWriteSeek(stream); Mixin.CheckParameters(parameters); ModuleWriter.WriteModule(this, Disposable.NotOwned(stream), parameters); }
public void Write(Stream stream, WriterParameters parameters) { Mixin.CheckStream(stream); if (!stream.CanWrite || !stream.CanSeek) { throw new ArgumentException(); } Mixin.CheckParameters(parameters); ModuleWriter.WriteModuleTo(this, stream, parameters); }
public static ModuleDefinition ReadModule(Stream stream, ReaderParameters parameters) { Mixin.CheckStream(stream); if (!stream.CanRead || !stream.CanSeek) { throw new ArgumentException(); } Mixin.CheckParameters(parameters); return(ModuleReader.CreateModuleFrom( ImageReader.ReadImageFrom(stream), parameters)); }