virtualSoC  0.6.2
baskett
vmasm.DeflateOutput Class Reference
+ Inheritance diagram for vmasm.DeflateOutput:

Public Member Functions

bool WriteToFile (byte[] asmdata, string file)
 

Properties

string Name [get]
 

Detailed Description

Member Function Documentation

◆ WriteToFile()

bool vmasm.DeflateOutput.WriteToFile ( byte []  asmdata,
string  file 
)

Implements vmasm.IModuleOutput.

33  {
34 
35  file = file.Contains("bin.df") ? file : file + "bin.df";
36 
37  using(var sfile = new System.IO.FileStream(file, System.IO.FileMode.Create))
38  {
39  using(DeflateStream gStream = new DeflateStream(sfile, CompressionMode.Compress))
40  gStream.Write (asmdata, 0, asmdata.Length);
41  }
42  return true;
43  }

Property Documentation

◆ Name

string vmasm.DeflateOutput.Name
get

The documentation for this class was generated from the following file: