VF_SET_PROP_VALUE_BASE64(3)

πŸ“¦ version 1.13, in debian bookworm, ubuntu jammy, ubuntu noble

πŸ’– vf_set_prop_value_base64 β€” bestie edition πŸ’–

okay so. this is vf_set_prop_value_base64(3), a lil library function from vf_iface.h (the ../vformat/ one, iykyk). she's the base64-flavoured sibling of vf_set_prop_value, and she is here to drop binary data straight into a property. slay.


✨ SYNOPSIS ✨

#include <../vformat/vf_iface.h>

extern bool_t vf_set_prop_value_base64
(
     VF_PROP_T *p_prop,
     const uint8_t *p_data,
     uint32_t length,
     bool_t copy
);

like yes, four args, and every single one of them matters. no skipping. πŸ’…


πŸŽ€ PARAMETERS πŸŽ€

  • VF_PROP_T *p_prop β€” the property we're setting a value in. that's the target, the moment, the main character. πŸ‘‘
  • const uint8_t *p_data β€” pointer to the binary data. raw bytes, no vibes filtered. 🧚
  • uint32_t length β€” length of the binary data. she needs to know exactly how many bytes we're talking about, no guessing fr fr.
  • bool_t copy β€” copy or keep pointer. this is the "do you want a whole new copy of this or are we just holding hands with the original pointer" question. πŸ™ˆ

🌸 DESCRIPTION 🌸

Set the value of a property.

...and that's genuinely the whole description, bestie. iconic brevity. she sets the value of a property. base64-style. periodt.


⭐ RETURNS ⭐

TRUE <=> set successfully.

(that <=> is doing a lot of heavy lifting and it means what it always means: if and only if. so TRUE back = it worked, and anything else = it did not. vibe check accordingly. πŸ’€)


πŸ¦‹ SEE ALSO πŸ¦‹

the whole friend group showed up, and we are obsessed:

vf_parse_init(3), vf_parse_text(3), vf_parse_end(3), vf_read_file(3), vf_write_file(3), vf_get_next_object(3), vf_create_object(3), vf_get_object_type(3), vf_get_property(3), vf_get_property_ex(3), vf_get_next_property(3), vf_get_prop_value(3), vf_set_prop_value(3), vf_get_prop_value_string(3), vf_get_prop_name_string(3), vf_set_prop_name_string(3), vf_get_prop_name(3), vf_get_prop_value_object(3), vf_set_prop_value_object(3), vf_set_prop_value_string(3), vf_get_prop_value_base64(3), vf_set_property_from_file(3), vf_delete_object(3), vf_delete_prop(3), vf_find_prop_qual_index(3), vf_is_modified(3), vf_find_charset(3), vf_date_string_to_time(3), vf_period_string_to_time(3), vf_period_time_to_string(3), vf_set_prop_value_time(3), vf_get_prop_value_time(3)


ngl the whole squad is here, so if you ever need to parse, read, write, get, set, delete, or time-stamp a property, there's a friend for that. 🫢

and that's the page!! this one's from c2man vf_iface.h, dated 30 April 2003 β€” yes she's an elder but she still ate, and this manual page is vf_set_prop_value_base64(3). bye bestie, go set some values πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈπŸ’…πŸŒˆβ­πŸ’œ

πŸ“¦ where this page comes from