TT_PATTERN_BCONTEXT_ADD(3)

πŸ“¦
version 2.5.3 Β· 2 versions
, in nixos 26.05

🌸 NAME 🌸

tt_pattern_bcontext_add β€” add a byte-array value to the values in this pattern's named context. This is the library call manual page for it, bestie πŸ’…


✨ SYNOPSIS ✨

       #include &<Tt/tt_c.h>
       Tt_status tt_pattern_bcontext_add(
       Tt_pattern p,
       const char *slotname,
       const unsigned char *value,
       int length);

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so tt_pattern_bcontext_add literally adds a byte-array value to the values in this pattern's named context. no cap.

Here's the cast of characters:

  • p β€” the opaque handle for the pattern involved in this operation.
  • slotname β€” describes the context for this pattern.
  • value β€” the byte string with the contents for the message context.
  • length β€” the length of value in bytes.

that's the whole vibe. it's giving "plug the bytes into the named context and go" πŸŽ€


πŸ’– RETURN VALUE πŸ’–

Upon successful completion, tt_pattern_bcontext_add returns the status of the operation as one of these Tt_status values:

  • TT_OK β€” the operation completed successfully. slay ✨
  • TT_ERR_UNIMP β€” the ToolTalk function called is not implemented.
  • TT_ERR_NOMP β€” the ttsession(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 specified slotname is syntactically invalid.

🌈 SEE ALSO 🌈


πŸ’… sign-off: the original footer is just tt_pattern_bcontext_add(library call) β€” no extra version or date line to report, bestie. bye and good luck with your byte arrays 🫢

πŸ“¦ where this page comes from