Skip to main content

pamoja_audit_entry_to_bytes

Function pamoja_audit_entry_to_bytes 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_audit_entry_to_bytes( entry: *const PamojaAuditEntry, ) -> *mut PamojaBuffer
Expand description

Encodes an entry for storage or transmission.

§Arguments

  • entry - the entry to encode.

§Returns

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

§Safety

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