Expand description
Opaque buffer handle for the Hurray C ABI.
HurrayBuffer is an opaque heap-allocated handle that wraps a
hurray_core::BufferHandle together with the raw data pointer and an
optional release callback. Callers create handles via
hurray_buffer_from_ptr and MUST destroy them exactly once via
hurray_buffer_destroy.
Structs§
- Hurray
Buffer - Opaque handle to a buffer registered with the Hurray C ABI.
Functions§
- hurray_
buffer_ ⚠alignment - Reads the declared alignment of a buffer handle (in bytes).
- hurray_
buffer_ ⚠byte_ size - Reads the byte size of a buffer handle.
- hurray_
buffer_ ⚠data_ ptr - Reads the raw data pointer stored in a buffer handle.
- hurray_
buffer_ ⚠destroy - Destroys a
HurrayBufferhandle and invokes the release callback. - hurray_
buffer_ ⚠device_ tag - Reads the device tag wire byte of a buffer handle.
- hurray_
buffer_ ⚠from_ ptr - Creates a new
HurrayBufferhandle from a raw data pointer and metadata. - hurray_
buffer_ ⚠memory_ class - Reads the memory class wire byte of a buffer handle.
- hurray_
buffer_ ⚠sync_ mode - Reads the sync mode wire byte of a buffer handle.
Type Aliases§
- Hurray
Release Callback - Optional release callback invoked by
hurray_buffer_destroy.