#[no_mangle]
pub unsafe extern "C" fn ket_process_isa_instructions_json(
process: &mut Process,
buffer: *mut u8,
buffer_size: usize,
write_size: &mut usize,
) -> i32
Expand description
Gets the JSON representation of the physical instructions in the Process
instance.
§Arguments
process
- [in] A mutable reference to theProcess
instance.buffer
- [in/out] A mutable pointer to a buffer to store the JSON representation.buffer_size
- [in] The size of the provided buffer.write_size
- [out] A mutable pointer to the actual size of the written data.
§Returns
An integer representing the error code. 0
indicates success.
§Safety
This function is marked as unsafe due to the use of raw pointers.