Skip to main content

haystack_value_from_brio

Function haystack_value_from_brio 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn haystack_value_from_brio( data: *const u8, len: usize, ) -> Option<Box<Value>>
Expand description

Decodes a Value from Brio binary bytes.

§Arguments

  • data pointer to the Brio-encoded bytes
  • len number of bytes at data

§Return

The decoded Value, or null on error. Call last_error_message to retrieve the error description.

§Safety

Panics on invalid input data