gd_seek64(3)

πŸ’– gd_seek64 β€” it's the GETDATA girlies' fave, bestie πŸ’–

okay so welcome to the getdata section of the manual (section 3, the library-call girlies, iykyk) and today's main character is gd_seek64, no cap πŸ’…


✨ NAME ✨

gd_seek64 β€” grab data out of a Dirfile database, but make it largefile support πŸ¦‹


πŸŽ€ SYNOPSIS πŸŽ€

#define GD_64BIT_API
#include <getdata.h>

gd_off64_t gd_seek64(DIRFILE *dirfile, const char *field_code,
       gd_off64_t frame_num, gd_off64_t sample_num, int flags);

🌸 DESCRIPTION 🌸

So this is literally the 64-bit-coded version of gd_seek(3), and the way that it does that is by using an offset type that is explicitly 64-bit β€” gd_off64_t β€” and it does that regardless of how big off_t is. She does not care. She is 64-bit and she's not shrinking herself for anybody πŸ‘‘

But bestie, listen β€” she's only guaranteed to be available if you #define GD_64BIT_API before you #include <getdata.h>. That's the whole vibe check. Miss that and she might not show up. 🫢

Now the plot twist:

  • If off_t is already a 64-bit type, this function will be the same as gd_seek(3). Same girl, different name tag πŸ’…
  • Otherwise, gd_seek(3) is a version of this function that uses a 32-bit off_t. So she's like the little sister version. Still iconic, just smaller. 🧚

πŸ‘‘ SEE ALSO πŸ‘‘


Version 0.10.0 🌈 and it was born on 25 December 2016 β€” a lil Christmas gift from the getdata girlies to you 🎁 mwah, that's a wrap, go read your Dirfile data fr fr πŸ’–βœ¨