gd_getdata64(3)

gd_getdata64 πŸ’– (the GETDATA girlies' 64-bit era)

okay bestie, so this one lives in section 3 of the GETDATA manual β€” the library call zone. Pull up a chair, grab a strawberry πŸ“, and let's talk about grabbing data out of your Dirfile database when your offsets are ✨big✨.


✨ NAME ✨

gd_getdata64 β€” bestie, this is how you retrieve data from a Dirfile database, but make it largefile support. πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

no cap, this is exactly how it goes down:

#define GD_64BIT_API
#include <getdata.h>

size_t gd_getdata64(DIRFILE *dirfile, const char *field_code, gd_off64_t
       first_frame, gd_off64_t first_sample, size_t num_frames, size_t
       num_samples, gd_type_t return_type, void *data_out);

like. look at those offsets. gd_off64_t twice. she's thriving. πŸ‘‘


πŸ¦‹ DESCRIPTION πŸ¦‹

so this version of gd_getdata(3) uses a 64-bit offset type (gd_off64_t), and it does that regardless of the size of off_t. she does not care what your off_t is going through. she's committed. πŸ’–

lowkey important: this function is only guaranteed to be available if GD_64BIT_API is defined before you include getdata.h. so like, define it. before. not after. the order literally matters bestie 😭

and here's the tea on how she relates to her sister function β˜•βœ¨:

  • If off_t is a 64-bit type, this function will be the same as gd_getdata(3). twins. matching outfits. 🫢
  • Otherwise, gd_getdata(3) will be a version of this function which uses a 32-bit off_t. so she's the blueprint, fr fr.

🌸 SEE ALSO 🌸

go read these next, i'm obsessed:


Version 0.10.0 🌈 β€” 25 December 2016 πŸŽ€

and that's the whole page bestie, mwah πŸ’‹ this was gd_getdata64(3) from the GETDATA manual, version 0.10.0, dated 25 December 2016 β€” slay, ate, no crumbs left, periodt. πŸ‘‘πŸ’–βœ¨