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 be NULL. either way she's unbothered. πŸ™ˆ
  • repn β€” the representation you want the value returned in. it must be one of VistaIOBitRepn, VistaIOUByteRepn, VistaIOSByteRepn, VistaIOShortRepn, VistaIOLongRepn, VistaIOFloatRepn, VistaIODoubleRepn, VistaIOBooleanRepn, or VistaIOStringRepn. 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 πŸ’€

The value argument must point to sufficient storage to contain a value of the representation requested. Neither VistaIODecodeAttrValue nor 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 the repn argument is not one of VistaIOBitRepn, VistaIOUByteRepn, ..., VistaIOBooleanRepn, or VistaIOStringRepn. 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. πŸ’–πŸŽ€πŸ¦‹