Function ergo::ergo_lib_ergo_tree_to_bytes
source · #[no_mangle]
pub unsafe extern "C" fn ergo_lib_ergo_tree_to_bytes(
ergo_tree_ptr: ConstErgoTreePtr,
output: *mut u8
) -> ErrorPtr
Expand description
Convert to serialized bytes. Key assumption: enough memory has been allocated at the address
pointed-to by output
. Use ergo_lib_ergo_tree_bytes_len
to determine the length of the
byte array.