Skip to main content

pamoja_buffer_data

Function pamoja_buffer_data 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_buffer_data( buffer: *const PamojaBuffer, ) -> *const u8
Expand description

Returns a pointer to a buffer’s bytes.

Use pamoja_buffer_len for the length. The pointer is valid until the buffer is freed.

§Returns

A pointer to the bytes, or null if buffer is null.

§Safety

buffer must be a live handle from a pamoja call that produced one, or null.