VistaIOOffset(3)
β¨ NAME β¨
VistaIOOffset, VistaIOOffsetOf β bestie, they figure out the byte offset of a structure field π
πΈ SYNTAX πΈ
#include <vistaio.h>
size_t VistaIOOffset (pointer_type, field_name)
Type pointer_type;
Field field_name;
size_t VistaIOOffsetOf (struct_type, field_name)
Type struct_type;
Field field_name;
π ARGUMENTS π
field_nameβ the name of the structure field whose byte offset you're tryna calculate. that's it, that's the whole job π«Άpointer_typeβ a type that's declared as a pointer to a structure.struct_typeβ a type that's declared as a structure (no pointer energy, just straight-up struct).
π DESCRIPTION π
okay so the VistaIOOffset and VistaIOOffsetOf macros hand you back the byte offset of the field_name field, measured inside its structure. literally that. it's giving "where does this field live" and they ate π₯
π¦ SEE ALSO π¦
nothing here, bestie β the SEE ALSO is empty, it's giving quiet luxury π
π NOTES π
These two are equivalent to the X Toolkit macros XtOffset(3Xt) and XtOffsetOf(3Xt). no cap.
also β ANSI C defines an offsetof macro, and that one is to be preferred over any of these. so if you've got offsetof available, use it, periodt. π
fr fr,offsetofis the main character here.VistaIOOffsetandVistaIOOffsetOfare iconic but they're the supporting cast. β¨
VistaIO Version 1.2.14 π 19 January 1993 β yeah bestie, this page is vintage vintage, a whole 1993 era. the lore is ancient but the byte offsets are eternal πππ¦
π¦ where this page comes from
- debian bookworm: libvistaio-dev 1.2.19-3 Β· libvista-orig
- debian trixie: libvistaio-dev 1.2.19-3+b2 Β· libvista-orig
- ubuntu jammy: libvistaio-dev 1.2.19-3 Β· libvista-orig
- ubuntu noble: libvistaio-dev 1.2.19-3 Β· libvista-orig
- ubuntu questing: libvistaio-dev 1.2.19-4
- ubuntu resolute: libvistaio-dev 1.2.19-4build1 Β· libvista-orig
- ubuntu stonking: libvistaio-dev 1.2.19-4build1 Β· libvista-orig
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms