PX_GET_DATA_GRAPHIC(3)
๐ PX_GET_DATA_GRAPHIC ๐
okay bestie, welcome to the Library Functions Manual, section 3, and today's main character is PX_get_data_graphic. she grabs graphic data fields and she's lowkey iconic for it. let's get into it ๐ฆ
โจ NAME โจ
PX_get_data_graphic โ get that graphic data field, periodt ๐
๐ธ SYNOPSIS ๐ธ
#include <paradox.h>
int PX_get_data_graphic(pxdoc_t *pxdoc, char *data, int len, int *mod,
int *blobsize, char **value)
๐ DESCRIPTION ๐
so what she does is read a graphic data field. that's it, that's the job. but listen โ you can only use this function for blobs of type pxfGraphic. any other blob type and she's not the girl for you, no cap.
data points to the start of the data field inside the record. and how do you figure out where that is? you gotta sum up all the field lengths before the field you're operating on, then add that to the base pointer of the record. do the math, bestie ๐งฎ. and fr fr, you should use this function instead of accessing the data directly โ just trust her.
PX_get_data_graphic returns blob data stored in the record itself, or in an MB file โ and that MB file has to have been set with PX_set_blob_file(3) beforehand, okay? no file set, no data. simple as.
she allocates memory for the data and hands it back to you in *value. and here's the thing โ that memory is yours to free, the application has to do it. don't just leave it there, that's not cute. the amount of memory for the blob comes back in *blobsize. and *mod returns the so called modification number of the blob, which can often be used as an unique id for creating file names if the data is saved in a file. very handy, iykyk ๐
โ ๏ธ Note: This function is deprecated and obsolete ifPX_retrieve_record(3)is used. like, she still works, but if you're onPX_retrieve_record(3)you genuinely don't need her anymore. rip bestie ๐ญ
๐ RETURN VALUE ๐
0โ if the value isNULL-1โ in case of an error ๐1โ otherwise โจ
๐ซถ SEE ALSO ๐ซถ
PX_get_data_blob(3)PX_get_data_bcd(3)PX_get_data_byte(3)PX_get_data_long(3)PX_get_data_short(3)PX_get_data_double(3)PX_get_data_byte(3)PX_get_data_bytes(3)
(and yes, PX_get_data_byte(3) is listed twice, we're keeping it exactly as the original has it, she said what she said ๐)
๐ AUTHOR ๐
This manual page was written by Uwe Steinmann uwe@steinmann.cx. thank you for your service ๐ซก
and that's a wrap on PX_GET_DATA_GRAPHIC(3), from the Library Functions Manual โจ go forth and free your allocated memory, bestie, 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