Skip to main content

Crate heeranjid_ffi

Crate heeranjid_ffi 

Source

Structs§

RanjIdT
RanjId is represented as 16 raw UUID bytes across the FFI boundary.

Functions§

heer_id_decode
Decode a HeerId into its component parts. Returns 0 on success, -1 on error (check heer_last_error).
heer_id_from_string
Parse a HeerId from a NUL-terminated string. On success writes the result into *out and returns 0. On error returns -1.
heer_id_to_string
Convert a HeerId to its string representation. Writes into buf (up to buf_len bytes including NUL). Returns the number of bytes written (excluding NUL) on success, -1 on error.
heer_last_error
Returns 0 if no error is stored. Otherwise copies the last error message into buf (up to buf_len bytes including the NUL terminator) and returns the number of bytes written (excluding the NUL). If the buffer is too small the message is truncated.
ranj_id_decode
Decode a RanjId into its component parts. Returns 0 on success, -1 on error.
ranj_id_from_string
Parse a RanjId from a NUL-terminated UUID string. On success writes the result into *out and returns 0. On error returns -1.
ranj_id_to_string
Convert a RanjId to its UUID string representation. Writes into buf (up to buf_len bytes including NUL). Returns bytes written (excluding NUL) on success, -1 on error.

Type Aliases§

HeerIdT
HeerId is represented as a plain i64 across the FFI boundary.