IXP_PDATA(3)
πΈ NAME πΈ
okay bestie, say hi to ixp_pdata β this is the IXP_PDATA(3) page, library functions manual vibes, and it's literally about packing and unpacking raw buffers. π
β¨ SYNOPSIS β¨
#include <ixp.h>
void ixp_pdata(IxpMsg *msg, char **data, uint len);
π DESCRIPTION π
so ixp_pdata packs or unpacks a raw character buffer of size len. iconic. π
- if
msg->modeisMsgPack, the buffer pointed to bydatais packed into the buffer atmsg->pos. slay. - if
msg->modeisMsgUnpack, the address pointed to bysis loaded with amalloc(3)allocated buffer with the contents of the buffer atmsg->pos. yes, the manual saysshere β keeping it exact, bestie. π«Ά
in either case, msg->pos is advanced by the number of bytes read or written. periodt. β¨
edge-case check π: if the action would advancemsg->posbeyondmsg->end,msg->posis still advanced, but no other action is taken. no cap.
π₯ SEE ALSO π₯
mwah π this page is from the libixp Manual, dated 2012 Dec β IXP_PDATA(3) out. π¦
π¦ where this page comes from
- nixos 26.05: libixp 0-unstable-2022-04-04
- nixpkgs unstable: libixp 0-unstable-2022-04-04
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms