Method LoadFrom
LoadFrom(LazyEncodedString, IContext)
Load a bit-code module from a given file
public static Module LoadFrom(LazyEncodedString path, IContext context)
Parameters
pathLazyEncodedStringpath of the file to load
contextIContextContext to use for creating the module
Returns
LoadFrom(MemoryBuffer, IContext)
Load bit code from a memory buffer
public static Module LoadFrom(MemoryBuffer buffer, IContext context)
Parameters
bufferMemoryBufferBuffer to load from
contextIContextContext to load the module into
Returns
Remarks
This along with WriteToBuffer() are useful for "cloning" a module from one context to another. This allows creation of multiple modules on different threads and contexts and later moving them to a single context in order to link them into a single final module for optimization.