Skip to main content

kj_runtime_dispatch_json

Function kj_runtime_dispatch_json 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn kj_runtime_dispatch_json( handle: KjHandle, event: *const u8, event_len: usize, output: *mut u8, capacity: usize, required: *mut usize, error: *mut u8, error_capacity: usize, error_required: *mut usize, ) -> KjStatus
Expand description

Dispatches a serialized Event and serializes its receipt as UTF-8 JSON.

§Safety

event must describe a readable UTF-8 byte region of event_len bytes when nonempty.