Struct cranelift_module::DataContext[][src]

pub struct DataContext { /* fields omitted */ }

This is to data objects what cranelift_codegen::Context is to functions.

Methods

impl DataContext
[src]

Allocate a new context.

Clear all data structures in this context.

Define a zero-initialized object with the given size.

Define an object initialized with the given contents.

TODO: Can we avoid a Box here?

Declare an external function import.

Users of the Module API generally should call Module::declare_func_in_data instead, as it takes care of generating the appropriate ExternalName.

Declares a global value import.

TODO: Rename to import_data?

Users of the Module API generally should call Module::declare_data_in_data instead, as it takes care of generating the appropriate ExternalName.

Write the address of func into the data at offset offset.

Write the address of data into the data at offset offset.

Reference the initializer data.

Auto Trait Implementations

impl Send for DataContext

impl Sync for DataContext