TT_MESSAGE_CONTEXT_BVAL(3)
π tt_message_context_bval(3) β library call edition π
okay bestie, welcome to the library-call page for tt_message_context_bval β it's giving "retrieve the byte-array value and length of a message's context" energy, and we're gonna get through it together π«Άβ¨
β¨ NAME β¨
tt_message_context_bval β retrieve the byte-array value and length of a message's context. periodt π
πΈ SYNOPSIS πΈ
#include &<Tt/tt_c.h>
Tt_status tt_message_context_bval(
Tt_message m,
const char *slotname,
unsigned char **value,
int *len);
π¦ DESCRIPTION π¦
The tt_message_context_bval function retrieves the byte-array value and length of a message's context. no cap, that's the whole mission π
If there is no context slot associated with slotname, tt_message_context_bval returns zero in slotname and zero in len. yes, literally zero in both spots β that's the tea, bestie π
The m argument is the opaque handle for the message involved in this operation.
The slotname argument describes the context of this message.
The value argument points to the location to return the value.
The len argument is the length of the value in bytes.
that's the whole cast of characters, and they're all doing their little jobs π
π RETURN VALUE π
Upon successful completion, the tt_message_context_bval function returns the status of the operation as one of the following Tt_status values:
TT_OKβ The operation completed successfully. slay βTT_ERR_NOMPβ Thettsession(1)process is not running and the ToolTalk service cannot restart it. πTT_ERR_POINTERβ The pointer passed does not point to an object of the correct type for this operation. πTT_ERR_SLOTNAMEβ The specifiedslotnameis syntactically invalid. π©
π SEE ALSO π
Tt/tt_c.h-Tttt_c(5).
go read those, iykyk πβ¨
source/version and date check: the footer here is just tt_message_context_bval(library call) β so that's the official sign-off tea, bestie π«Άπ
π¦ where this page comes from
- nixos 26.05: cde 2.5.3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms