VarbitChanged

Methods
9
Fields
1

Methods

MethodReturnsDescription
getVarbitId()numberThe varbit that changed, or -1 for a varp change.
getVarpId()numberThe varp that changed (a varbit's own varp for a varbit change; -1 on the differ's legacy copy of a varbit change, which does not carry it).
getValue()numberThe new value.
getOldValue()numberThe value before the change.
getLongValue()numberThe new value as a long: getValue() widened. The client's varps are 32-bit, and it also has 64-bit varps. A change to a 64-bit one is r…
getIndex()numberDeprecated: use getVarpId().
setValue(number)()Set the value: later subscribers of this change see the new value (the client's varp is not touched). Refused on the differ's read-only cop…
setVarbitId(number)()Set the varbit id, as setValue.
setVarpId(number)()Set the varp id, as setValue.

Fields

FieldTypeDescription
__eventClassstring"VarbitChanged": the class's name, which host APIs that take the class itself read.

Method details

getVarpId

getVarpId: (VarbitChanged) -> number

The varp that changed (a varbit's own varp for a varbit change; -1 on the differ's legacy copy of a varbit change, which does not carry it).

getLongValue

getLongValue: (VarbitChanged) -> number

The new value as a long: getValue() widened. The client's varps are 32-bit, and it also has 64-bit varps. A change to a 64-bit one is raised with the long's low 32 bits only, so there this is those 32 bits widened, not the long. Declared number; every 32-bit value fits exactly.

setValue

setValue: (VarbitChanged, number) -> ()

Set the value: later subscribers of this change see the new value (the client's varp is not touched). Refused on the differ's read-only copy.