|
DETLEF C SDK
Native embedding and package authoring
|
Functions | |
| static DetlefSdkStatus | detlef_sdk_integer (DetlefSdkCall *call, int64_t value, DetlefSdkValue *out) |
| static DetlefSdkStatus | detlef_sdk_float (DetlefSdkCall *call, double value, DetlefSdkValue *out) |
| static DetlefSdkStatus | detlef_sdk_boolean (DetlefSdkCall *call, DetlefSdkBool value, DetlefSdkValue *out) |
| static DetlefSdkStatus | detlef_sdk_string (DetlefSdkCall *call, const char *text, size_t length, DetlefSdkValue *out) |
| static DetlefSdkStatus | detlef_sdk_none (DetlefSdkCall *call, DetlefSdkValue *out) |
| static DetlefSdkStatus | detlef_sdk_get_integer (DetlefSdkCall *call, DetlefSdkValue value, int64_t *out) |
| static DetlefSdkStatus | detlef_sdk_get_float (DetlefSdkCall *call, DetlefSdkValue value, double *out) |
| static DetlefSdkStatus | detlef_sdk_get_boolean (DetlefSdkCall *call, DetlefSdkValue value, DetlefSdkBool *out) |
| static DetlefSdkStatus | detlef_sdk_format (DetlefSdkCall *call, DetlefSdkValue value, char *output, size_t capacity, size_t *length) |
|
inlinestatic |
Create a boolean from DETLEF_SDK_FALSE (0) or DETLEF_SDK_TRUE (1).
| call | Borrowed callback access. Must not be saved or freed. | |
| value | DETLEF_SDK_FALSE (0) or DETLEF_SDK_TRUE (1). | |
| [out] | out | Receives a callback-local handle, released automatically at callback exit. Must be retained before being saved beyond the callback. |
|
inlinestatic |
Create a float from a C double.
| call | Borrowed callback access. Must not be saved or freed. | |
| value | Float to store. | |
| [out] | out | Receives a callback-local handle, released automatically at callback exit. Must be retained before being saved beyond the callback. |
|
inlinestatic |
Format a value into caller-supplied UTF-8 storage. Strings yield their contents; arrays and records use JSON. The complete byte length is returned even when the output is truncated. No trailing NUL is written.
| call | Borrowed callback access. Must not be saved or freed. | |
| value | Borrowed runtime value handle to format. Not consumed. | |
| [out] | output | Borrowed writable buffer. Never freed by the SDK. |
| capacity | Available bytes in output. | |
| [out] | length | Receives the full required byte length. No cleanup is required. |
|
inlinestatic |
Read a boolean as zero or one without converting another value type.
| call | Borrowed callback access. Must not be saved or freed. | |
| value | Borrowed boolean value handle. Not consumed. | |
| [out] | out | Receives zero or one. No cleanup is required. |
|
inlinestatic |
Read a float without converting another value type.
| call | Borrowed callback access. Must not be saved or freed. | |
| value | Borrowed float value handle. Not consumed. | |
| [out] | out | Receives a C double. No cleanup is required. |
|
inlinestatic |
Read a signed 64-bit integer without converting other value types.
| call | Borrowed callback access. Must not be saved or freed. | |
| value | Borrowed integer handle. Its ownership is unchanged. | |
| [out] | out | Receives the integer. No cleanup is required. |
|
inlinestatic |
Create a signed 64-bit integer value.
| call | Borrowed callback access. Must not be saved or freed. | |
| value | Integer to store. | |
| [out] | out | Receives a callback-local handle. Released automatically at callback exit; it may also be supplied as the callback result. |
|
inlinestatic |
Create the language value none, which is distinct from a zero result handle.
| call | Borrowed callback access. Must not be saved or freed. | |
| [out] | out | Receives a callback-local handle, released automatically at callback exit. Must be retained before being saved beyond the callback. |
|
inlinestatic |
Create a string by copying UTF-8 bytes. Embedded NUL bytes are supported.
| call | Borrowed callback access. Must not be saved or freed. | |
| text | Borrowed bytes, valid through this call. | |
| length | Byte length, excluding any trailing NUL. | |
| [out] | out | Receives a callback-local handle, released automatically at callback exit. Must be retained before being saved beyond the callback. |