Loads CBO modules and resolves their native function bindings.
More...
#include <bond/vm/cboloader.h>
Loads CBO modules and resolves their native function bindings.
A CboLoader aggregates one or more CBO inputs, combines their contents into a single CodeSegment, and binds native functions from supplied NativeBindingCollections.
◆ CboLoader() [1/3]
| Bond::CboLoader::CboLoader |
( |
Allocator & | allocator | ) |
|
|
inlineexplicit |
Constructs a CboLoader using the same allocator for temporary and persistent data.
- Parameters
-
| allocator | The allocator used while loading and for the resulting CodeSegment. |
◆ CboLoader() [2/3]
Constructs a CboLoader with separate allocators for temporary and persistent data.
- Parameters
-
◆ CboLoader() [3/3]
| Bond::CboLoader::CboLoader |
( |
const CboLoader & | other | ) |
|
|
delete |
◆ AddCboFile() [1/2]
| void Bond::CboLoader::AddCboFile |
( |
const void * | byteCode, |
|
|
size_t | length ) |
|
inline |
Adds an in-memory CBO file.
- Parameters
-
| byteCode | Pointer to the CBO byte stream. |
| length | Number of bytes in the CBO stream. |
◆ AddCboFile() [2/2]
| void Bond::CboLoader::AddCboFile |
( |
InputStream & | cboStream | ) |
|
|
inline |
Adds a CBO file stream.
- Parameters
-
| cboStream | Input stream containing CBO data. The stream is not copied and must remain valid until Load() returns. |
◆ AddNativeBinding()
Adds a collection of native function bindings used to resolve native declarations.
- Parameters
-
| nativeBinding | Native binding collection to search when binding native functions. The collection is not copied and must remain valid until Load() returns. |
◆ Load()
◆ operator=()
The documentation for this class was generated from the following file:
- include/bond/vm/cboloader.h