benilla-re systems structs docs

CVar

struct · cvar · 196 bytes

Meaning
Names the setting record: hash, links, name, category, flags, value, default, reset, latched, help and callback
Confidence
verified, proof two
Finding
cvar/registry#cvar-record

Finding: CVar record in cvar: registry

A record is 0xc4 bytes, allocated under the tag CVar.

offsetholds
+0hash of the name
+4, +0xcbucket link, all-records link
+0x14the name, a duplicate of the registered text
+0x18category id
+0x1cflags
+0x20value text
+0x24, +0x28the value as a float and as an integer
+0x2cchange count
+0x30, +0x34default text, reset text
+0x38latched text
+0x3c, +0xbc, +0xc0help line (0x80 bytes), callback, callback argument

The derivation is in the doc.

Fields 16

offsetsizetypenamemeaningconfidencefinding
0x00004uint32_tm_hashHolds the hash of the nameverified, proof twocvar/registry#cvar-record
0x00048uint32_t[2]m_bucketLinkHolds the link in the hash bucket chainverified, proof twocvar/registry#cvar-record
0x000c8uint32_t[2]m_listLinkHolds the link in the list of all recordsverified, proof twocvar/registry#cvar-record
0x00144char *m_nameHolds the name, a duplicate of the registered textverified, proof twocvar/registry#cvar-record
0x00184uint32_tm_categoryHolds the category idverified, proof twocvar/registry#cvar-record
0x001c4uint32_tm_flagsHolds the flag bits: 0 saved, 1 latched, 2 read-only, 31 script-visibleverified, proof twocvar/registry#cvar-record
0x00204char *m_valueHolds the value textverified, proof twocvar/registry#cvar-record
0x00244floatm_floatValueHolds the value as a floatverified, proof twocvar/registry#cvar-record
0x00284int32_tm_intValueHolds the value as an integerverified, proof twocvar/registry#cvar-record
0x002c4uint32_tm_changeCountHolds the number of accepted setsverified, proof twocvar/registry#cvar-record
0x00304char *m_defaultHolds the default textverified, proof twocvar/registry#cvar-record
0x00344char *m_resetHolds the reset textverified, proof twocvar/registry#cvar-record
0x00384char *m_latchedHolds the latched text applied by Updateverified, proof twocvar/registry#cvar-record
0x003c128char[128]m_helpHolds the help lineverified, proof twocvar/registry#cvar-record
0x00bc4void *m_callbackHolds the change callbackverified, proof twocvar/registry#cvar-record
0x00c04void *m_callbackArgHolds the argument passed to the callbackverified, proof twocvar/registry#cvar-record

Globals of this type