mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-26 15:11:37 +00:00
adding a document for wasmer_instance_context_get
This commit is contained in:
@ -108,6 +108,7 @@ pub unsafe extern "C" fn wasmer_instantiate(
|
|||||||
wasmer_result_t::WASMER_OK
|
wasmer_result_t::WASMER_OK
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Extracts the instance's context and returns it.
|
||||||
#[allow(clippy::cast_ptr_alignment)]
|
#[allow(clippy::cast_ptr_alignment)]
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
pub unsafe extern "C" fn wasmer_instance_context_get(
|
pub unsafe extern "C" fn wasmer_instance_context_get(
|
||||||
|
@ -417,6 +417,9 @@ void *wasmer_instance_context_data_get(const wasmer_instance_context_t *ctx);
|
|||||||
*/
|
*/
|
||||||
void wasmer_instance_context_data_set(wasmer_instance_t *instance, void *data_ptr);
|
void wasmer_instance_context_data_set(wasmer_instance_t *instance, void *data_ptr);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Extracts the instance's context and returns it.
|
||||||
|
*/
|
||||||
const wasmer_instance_context_t *wasmer_instance_context_get(wasmer_instance_t *instance);
|
const wasmer_instance_context_t *wasmer_instance_context_get(wasmer_instance_t *instance);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -337,6 +337,7 @@ void *wasmer_instance_context_data_get(const wasmer_instance_context_t *ctx);
|
|||||||
/// passed to all imported function for instance.
|
/// passed to all imported function for instance.
|
||||||
void wasmer_instance_context_data_set(wasmer_instance_t *instance, void *data_ptr);
|
void wasmer_instance_context_data_set(wasmer_instance_t *instance, void *data_ptr);
|
||||||
|
|
||||||
|
/// Extracts the instance's context and returns it.
|
||||||
const wasmer_instance_context_t *wasmer_instance_context_get(wasmer_instance_t *instance);
|
const wasmer_instance_context_t *wasmer_instance_context_get(wasmer_instance_t *instance);
|
||||||
|
|
||||||
/// Gets the memory within the context at the index `memory_idx`.
|
/// Gets the memory within the context at the index `memory_idx`.
|
||||||
|
Reference in New Issue
Block a user