Constructor MemoryBuffer
MemoryBuffer(String)
Initializes a new instance of the MemoryBuffer class from a file
Declaration
public MemoryBuffer(string path)
Parameters
public MemoryBuffer(string path)
String | path | Path of the file to load |
MemoryBuffer(Byte[], String)
Initializes a new instance of the MemoryBuffer class from a byte array
Declaration
public MemoryBuffer(byte[] data, string name = null)
Parameters
public MemoryBuffer(byte[] data, string name = null)
Byte[] | data | Array of bytes to copy into the memory buffer |
String | name | Name of the buffer (for diagnostics) |
Remarks
This constructor makes a copy of the data array as a MemoryBuffer the memory in the buffer is unmanaged memory usable by the LLVM native code. It is released in the Dispose method