VistaIORepn(3)
π VistaIORepn(3) β Library Functions Manual β¨
okay bestie, welcome to the VistaIORepn page, aka the group chat where you find out everything about a type's representation. no cap. π«Ά
πΈ NAME πΈ
VistaIORepnName, VistaIORepnSize, etc. β obtain information about a type's representation
like. it's giving "let me tell you about this type" energy. all of these lil functions are your besties for that. π
β¨ SYNOPSIS β¨
so here's the whole vibe, verbatim, no edits (iykyk):
typedef enum {
VistaIOUnknownRepn,
VistaIOBitRepn, VistaIOUByteRepn, VistaIOSByteRepn,
VistaIOShortRepn, VistaIOLongRepn,
VistaIOFloatRepn, VistaIODoubleRepn,
VistaIOAttrListRepn, VistaIOBooleanRepn, VistaIOBundleRepn,
VistaIOListRepn, VistaIOPointerRepn, VistaIOStringRepn,
VistaIOEdgesRepn, VistaIOImageRepn
} VistaIORepnKind;
VistaIOBoolean VistaIOIsFloatPtRepn (VistaIORepnKind repn)
VistaIOBoolean VistaIOIsIntegerRepn (VistaIORepnKind repn)
VistaIOStringConst VistaIORepnName (VistaIORepnKind repn)
VistaIODouble VistaIORepnMaxValue (VistaIORepnKind repn)
VistaIODouble VistaIORepnMinValue (VistaIORepnKind repn)
int VistaIORepnPrecision (VistaIORepnKind repn)
size_t VistaIORepnSize (VistaIORepnKind repn)
that VistaIORepnKind enum? iconic. π
π ARGUMENTS π
repnβ Specifies the data type about which information is sought. (translation: you tell it which type you're curious about, and it spills the tea β)
π DESCRIPTION π
These macros return information about Vista data types, each of which is identified by one of the VistaIORepnKind series of integer codes. literally a whole little info desk for your types. π
VistaIOIsFloatPtRepnreturnsTRUEifrepnisVistaIOFloatRepnorVistaIODoubleRepn. floating point girlies only, sorry not sorry β¨VistaIOIsIntegerRepnreturnsTRUEifrepnisVistaIOBitRepn,VistaIOUByteRepn,VistaIOSByteRepn,VistaIOShortRepn, orVistaIOLongRepn. integer squad, assemble π«ΆVistaIORepnNamereturns a string naming the specified type. For example, whenrepnisVistaIOBitRepnit returns`bit`. so cute, so simple.VistaIORepnMaxValuereturns the maximum value that can be represented by the specified type. the ceiling. the limit. the "that's enough" πVistaIORepnMinValuereturns the minimum (most negative) value that can be represented by the specified type. the floor, and it's negative bestie πVistaIORepnPrecisionreturns the minimum number of bits needed to represent the specified type on any machine. any machine. so portable of it πVistaIORepnSizereturns the size, in bytes, of the specified type on the present machine. present machine specifically, don't @ me π¦
π₯ SEE ALSO π₯
β NOTES β
VistaIORepnMaxValue,VistaIORepnMinValue, andVistaIORepnPrecisionare undefined (and return0) ifrepnisn'tVistaIOBitRepnthroughVistaIODoubleRepn, orVistaIOBooleanRepn. so like, don't do that. it's giving undefined behaviour and not the fun kind π
A new value in the VistaIORepnKind series is assigned by VistaIORegisterType when it is called to register a new object type. That new value can be used in a call to any of these macros β all return 0 or FALSE except VistaIORepnName, which returns the name of the newly registered type. new type just dropped and it ate π
β¨
π AUTHOR π
- Art Pope
<pope@cs.ubc.ca> - Adaption to vistaio: Gert Wollny
<gw.fossdev@gmail.com>
and that's the whole page bestie, no crumbs left π
VistaIO Version 1.2.14 β 21 January 1994. yeah it's vintage, it's that girl, and honestly? still serving. mwah πππ¦πΈβ¨
π¦ 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