PX_PUT_DATA_BYTES(3)
π PX_PUT_DATA_BYTES(3) β the paradox library, bestie edition β¨
okay so picture this: you're deep in the paradox library, you've got a pxdoc_t in one hand and a raw record in the other, and you need to shove some bytes into a field. that's literally what this page is about. no cap. π«Ά
πΈ NAME πΈ
PX_put_data_bytes β put a value into a bytes data field π
β¨ SYNOPSIS β¨
#include <paradox.h>
void PX_put_data_bytes(pxdoc_t *pxdoc, char *data, int len, char *value)
π¦ DESCRIPTION π¦
okay so the tea is: this function simply copies a sequence of bytes into a data field exactly as it's stored in the database file. like, that's the whole job. iconic of it honestly. π
and listen β you should use this function instead of accessing the record data directly. it's giving "please don't rawdog the record buffer," fr fr. π
data points to the start of the data field in the record. and the way you figure out where that is? you gotta sum up all the field lengths before the field you're operating on and add that to the base pointer of the record. math but make it β¨structurally necessaryβ¨.
this function is similar to PX_put_data_alpha(3) β except without recoding. it's mostly used to store field data of Type pxfBytes. so if that's your type, this is your girl. π
π₯ SEE ALSO π₯
your little friend group of related functions, all besties, all doing similar but different things:
PX_put_data_byte(3)PX_put_data_short(3)PX_put_data_long(3)PX_put_data_double(3)PX_put_data_alpha(3)
π AUTHOR π
this manual page was written by Uwe Steinmann uwe@steinmann.cx. thank you for your service, king. π«‘
and that's the whole page bestie, you made it to the end of PX_PUT_DATA_BYTES(3) from the Library Functions Manual β go forth and copy those bytes responsibly, mwah πβ
π¦ where this page comes from
- debian bookworm: pxlib-dev 0.6.8-1+b1
- debian trixie: pxlib-dev 0.6.9-1+b1
- ubuntu jammy: pxlib-dev 0.6.8-1
- ubuntu noble: pxlib-dev 0.6.8-1
- ubuntu questing: pxlib-dev 0.6.9-1
- ubuntu resolute: pxlib-dev 0.6.9-1build1
- ubuntu stonking: pxlib-dev 0.6.10-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms