VistaIODecodeAttrValue(3)
π VistaIODecodeAttrValue(3) π
okay bestie, welcome to the Library Functions Manual β today's main character is VistaIODecodeAttrValue(3), and she is literally here to turn your dusty little string into a real, typed value. no cap. π
β¨ NAME β¨
VistaIODecodeAttrValue β decode an attribute value π¦
πΈ SYNOPSIS πΈ
VistaIOBoolean VistaIODecodeAttrValue (str, dict, repn, value)
VistaIOStringConst str;
VistaIODictEntry *dict;
VistaIORepnKind repn;
VistaIOPointer value;
π ARGUMENTS π
strβ the attribute value you want decoded, bestie. hand it over. πdictβ this may specify a dictionary used to recognize the value you passed as a keyword. or it may just beNULL. either way she's unbothered. πrepnβ the representation you want the value returned in. it must be one ofVistaIOBitRepn,VistaIOUByteRepn,VistaIOSByteRepn,VistaIOShortRepn,VistaIOLongRepn,VistaIOFloatRepn,VistaIODoubleRepn,VistaIOBooleanRepn, orVistaIOStringRepn. that's the whole guest list, no plus-ones. β¨valueβ a location where the value is to be returned. she's putting it right there. π«Ά
π DESCRIPTION π
VistaIODecodeAttrValue decodes the string str and returns its value in the form you specified with repn. it's giving translator, it's giving glow-up for strings. π₯
If a dictionary β dict β has been provided, the routine figures out whether str is a keyword defined in that dictionary. and if it is? she uses the value associated with that keyword instead of the attribute's original value. (peep the VistaIOdictionary(3) manual page for the lore. π)
The value obtained directly from str, or indirectly via the dictionary, gets converted to the representation repn and then stored at the location pointed to by value. slay. π
β RETURN VALUES β
VistaIODecodeAttrValue returns TRUE if it succeeded and FALSE otherwise.
She will fail if repn is invalid, or if str cannot be interpreted as a value of the type indicated by repn. like, she tried, okay? π
π SEE ALSO π
π NOTES π
Thevalueargument must point to sufficient storage to contain a value of the representation requested. NeitherVistaIODecodeAttrValuenor the C compiler can automatically check that this is so. π¨
fr fr, she is NOT checking your buffer for you. that's on you, bestie. no cap. π«£
π©Ί DIAGNOSTICS π©Ί
`Can't decode to repn.'`β this means therepnargument is not one ofVistaIOBitRepn,VistaIOUByteRepn, ...,VistaIOBooleanRepn, orVistaIOStringRepn. wrong rep, boo. π
π AUTHOR π
- Art Pope <pope@cs.ubc.ca>
- Adaption to vistaio: Gert Wollny <gw.fossdev@gmail.com>
and that's the whole page, gorgeous β¨ this was VistaIO Version 1.2.14, dated 24 April 1993 β yeah she's vintage but she still ate. periodt. πππ¦
π¦ 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