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 ifGD_64BIT_APIis defined before you includegetdata.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_tis a 64-bit type, this function will be the same asgd_getdata(3). twins. matching outfits. π«Ά - Otherwise,
gd_getdata(3)will be a version of this function which uses a 32-bitoff_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. ππβ¨
π¦ where this page comes from
- debian bookworm: libgetdata-doc 0.11.0-6
- debian trixie: libgetdata-doc 0.11.0-15
- fedora 43: getdata-devel 0.11.0-13.fc43 Β· GPL-2.0-or-later
- fedora 43: getdata-devel 0.11.0-13.fc43 Β· GPL-2.0-or-later
- fedora 44: getdata-devel 0.11.0-14.fc44 Β· GPL-2.0-or-later
- fedora 44: getdata-devel 0.11.0-14.fc44 Β· GPL-2.0-or-later
- nixos 26.05: getdata 0.11.0
- nixpkgs unstable: getdata 0.11.0
- ubuntu jammy: libgetdata-doc 0.11.0-3ubuntu1
- ubuntu noble: libgetdata-doc 0.11.0-13
- ubuntu questing: libgetdata-doc 0.11.0-15
- ubuntu resolute: libgetdata-doc 0.11.0-17build1
- ubuntu stonking: libgetdata-doc 0.11.0-17build2
- Copyright (C) 2016 D. V. Wiebe
- Copyright (C) 2008, 2010, 2012, 2016 D.V. Wiebe
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms