Skip to main content

hurray_buffer_destroy

Function hurray_buffer_destroy 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn hurray_buffer_destroy( buffer: *mut HurrayBuffer, ) -> HurrayStatus
Expand description

Destroys a HurrayBuffer handle and invokes the release callback.

After this call, buffer is no longer valid and MUST NOT be dereferenced. In debug builds, a double-free attempt returns HURRAY_ERR_INTERNAL.

ยงSafety