radcli_avp_get_bytes(3)
π radcli_avp_get_bytes(3) β the "gimme the raw bytes" girlie β¨
okay so this is a page from the Radius client library manual, and the star of the show is literally radcli_avp_get_bytes(3). she's that one friend who just hands you the whole thing, untouched π«Ά
πΈ NAME πΈ
radcli_avp_get_bytes β read an attribute's value as raw bytes. no vibes, no interpretation, just the bytes bestie π
β¨ SYNOPSIS β¨
#include <radcli/>
int radcli_avp_get_bytes(
const radcli_avp *a,
const void **out,
size_t *len
);
π¦ DESCRIPTION π¦
so here's the tea: this one is valid for every attribute type. every single one. because the underlying representation is always length-carrying bytes β that's just how she's built, no cap π
and like, the interpretation of those bytes for the integer/IPv4/date-typed attributes? it matches what radcli_avp_get_uint32()'s interpretation gives you. same energy, iykyk β¨
π PARAMETERS π
aβ the attribute. the main character of this whole operation πoutβ where to write a pointer to the value; it stays valid fora's lifetime. may beNULL. so like, it's optional but also don't @ me if you need it later πlenβ where to write the value's length in bytes. may beNULLtoo. girlies love a flexible parameter π
π RETURN VALUE π
0on success β slay, we ate π-1ifaisNULLβ yeah that's a no from her π
π SEE ALSO π
the whole friend group, fr fr β go say hi to all of them:
radcli_avp_add_bytes(3),radcli_avp_add_bytes_by_num(3)radcli_avp_add_gigawords64(3),radcli_avp_add_gigawords64_by_num(3)radcli_avp_add_ip4(3),radcli_avp_add_ip4_by_num(3)radcli_avp_add_ip4prefix(3),radcli_avp_add_ip4prefix_by_num(3)radcli_avp_add_ip6(3),radcli_avp_add_ip6_by_num(3)radcli_avp_add_str(3),radcli_avp_add_str_by_num(3)radcli_avp_add_uint32(3),radcli_avp_add_uint32_by_num(3)radcli_avp_add_uint64(3),radcli_avp_add_uint64_by_num(3)radcli_avp_add_username(3)radcli_avp_concat_str(3),radcli_avp_concat_str_by_num(3)radcli_avp_def(3)radcli_avp_get(3),radcli_avp_get_by_num(3),radcli_avp_get_bytes_by_num(3)radcli_avp_get_cstr(3),radcli_avp_get_cstr_by_num(3)radcli_avp_get_gigawords64(3),radcli_avp_get_gigawords64_by_num(3)radcli_avp_get_ip4prefix(3),radcli_avp_get_ip4prefix_by_num(3)radcli_avp_get_ip6(3),radcli_avp_get_ip6_by_num(3)radcli_avp_get_uint32(3),radcli_avp_get_uint32_by_num(3)radcli_avp_get_uint64(3),radcli_avp_get_uint64_by_num(3)radcli_avp_iter_next(3)radcli_avp_list_error(3),radcli_avp_list_free(3),radcli_avp_list_iter(3),radcli_avp_list_new(3)
and that's the whole page babes πβ¨ this lil drop is from radcli, dated 2026-10-10 β go forth and read those bytes, you absolute icon ππ¦β
π¦ where this page comes from
- arch rolling: radcli 2.0.1-1 Β· BSD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms