Skip to main content

pamoja_cdr_writer_into_bytes

Function pamoja_cdr_writer_into_bytes 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_cdr_writer_into_bytes( writer: *mut PamojaCdrWriter, ) -> *mut PamojaBuffer
Expand description

Takes the encoded bytes, consuming the encoder.

§Arguments

  • writer - the encoder, which this call frees.

§Returns

A buffer the caller must release with pamoja_buffer_free, or null if writer is null.

§Safety

writer must be a live handle from pamoja_cdr_writer_new, or null. After this call it must not be used again.