virtualSoC  0.6.2
baskett
vmasm.ModuleOutputFactory Class Reference

Static Public Member Functions

static bool WriteToFile (byte[] asmdata, string file, string strType)
 
static bool WriteToFile (byte[] asmdata, string file, ModuleOutputType eType)
 

Detailed Description

Member Function Documentation

◆ WriteToFile() [1/2]

static bool vmasm.ModuleOutputFactory.WriteToFile ( byte []  asmdata,
string  file,
string  strType 
)
static
43  {
44  strType = strType.ToUpper ();
45  return WriteToFile (asmdata, file, (strType == "RAW") ? ModuleOutputType.RAW :
46  (strType == "GZ") ? ModuleOutputType.GZIP : ModuleOutputType.Deflate);
47  }
ModuleOutputType
Definition: IModuleOutput.cs:25
static bool WriteToFile(byte[] asmdata, string file, string strType)
Definition: IModuleOutput.cs:42

◆ WriteToFile() [2/2]

static bool vmasm.ModuleOutputFactory.WriteToFile ( byte []  asmdata,
string  file,
ModuleOutputType  eType 
)
static
49  {
50  IModuleOutput output = null;
51  switch (eType) {
52  case ModuleOutputType.RAW:
53  output = new RawOutput ();
54  break;
55  case ModuleOutputType.Deflate:
56  output = new DeflateOutput ();
57  break;
58  case ModuleOutputType.GZIP:
59  output = new GzipOutput ();
60  break;
61  default:
62  break;
63  }
64  if (output != null) {
65  return output.WriteToFile (asmdata, file);
66  }
67  return false;
68  }
ModuleOutputType
Definition: IModuleOutput.cs:25

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