Skip to main content

Module status

Module status 

Source
Expand description

Status codes and error mapping for the Hurray C ABI.

All exported extern "C" functions return a HurrayStatus integer. Zero indicates success; negative values indicate a specific error condition. Callers MUST check the return value of every function before using output pointer arguments.

Constants§

HURRAY_ERR_BUFFER_TOO_SMALL
An output buffer is too small to hold the result.
HURRAY_ERR_INDEX_OUT_OF_BOUNDS
An index argument is outside the valid range for the collection.
HURRAY_ERR_INTERNAL
An unclassified internal error occurred.
HURRAY_ERR_INTERNAL_PANIC
The function panicked internally; the handle MUST NOT be reused.
HURRAY_ERR_INVALID_LAYOUT
A layout descriptor field or tag is invalid.
HURRAY_ERR_INVALID_MAGIC
The descriptor magic bytes were not "HRRY" (0x48 0x52 0x52 0x59).
HURRAY_ERR_INVALID_SYNC_MODE
The sync mode byte is not a recognized value.
HURRAY_ERR_INVALID_TYPE
A type tag, device tag, or memory class is invalid.
HURRAY_ERR_NULL_POINTER
A required pointer argument is null.
HURRAY_ERR_SYNC_MODE_MISMATCH
A sync-mode handoff payload does not match the buffer’s declared sync mode.
HURRAY_ERR_VERSION_MISMATCH
The descriptor version is not supported by this implementation.
HURRAY_OK
Operation completed successfully.

Type Aliases§

HurrayStatus
Integer status code returned by every Hurray C ABI function.