gnutls_buffer_append_data(3)

πŸ’– gnutls_buffer_append_data(3) πŸ’–

okay bestie, welcome to the gnutls manual, this one's a lil function page and it's literally so simple you're gonna slay it ✨


πŸŽ€ NAME πŸŽ€

gnutls_buffer_append_data β€” API function

the way this is just a function that puts stuff at the end of a buffer. that's it. that's the whole vibe. 🫢


✨ SYNOPSIS ✨

#include <gnutls/gnutls.h>

int gnutls_buffer_append_data(gnutls_buffer_t dest, const void * data,
       size_t data_size);

look at her. three args. no drama. πŸ‘‘


🌸 ARGUMENTS 🌸

  • gnutls_buffer_t dest β€” the buffer we're appending to, aka the destination, aka where the data is going to live now 🏠
  • const void * data β€” the data itself, the lil payload, the thing being added
  • size_t data_size β€” the size of data, like how many bytes of it we're actually handing over πŸ“

πŸ’… DESCRIPTION πŸ’…

Appends the provided data to the destination buffer. no cap, that's genuinely the entire description. it takes your data and it appends it. to the destination buffer. iconic behavior fr fr ✨


πŸ”₯ RETURNS πŸ”₯

GNUTLS_E_SUCCESS on success β€” otherwise a negative error code 😭

(so like, if it's happy you get the success code, and if it's not happy you get a negative number. check it. always check it. periodt.)


⭐ SINCE ⭐

3.4.0 β€” she's been around since 3.4.0, a true veteran, main character energy since day one πŸ’œ


πŸ¦‹ REPORTING BUGS πŸ¦‹

found a bug? not the vibe. report it to <bugs@gnutls.org>. πŸ“§

Home page: https://www.gnutls.org


Copyright Β© 2001-2023 Free Software Foundation, Inc., and others.

Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved.

(translation: keep the notice, keep the notice, and you're good 🫢)


🧚 SEE ALSO 🧚

The full documentation for gnutls is maintained as a Texinfo manual. If the /usr/share/doc/gnutls/ directory does not contain the HTML form visit

https://www.gnutls.org/manual/


bestie if you got this far you're officially a gnutls girlie now πŸ’– go append some data, you ate

gnutls 3.8.13 Β· this page brought to you by gnutls_buffer_append_data(3) Β· bye pookie, stan the docs πŸ’…βœ¨

πŸ“¦ where this page comes from