getVarbitId
getVarbitId: (VarbitChanged) -> numberThe varbit that changed, or -1 for a varp change.
| Method | Returns | Description |
|---|---|---|
getVarbitId() | number | The varbit that changed, or -1 for a varp change. |
getVarpId() | 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). |
getValue() | number | The new value. |
getOldValue() | number | The value before the change. |
getLongValue() | 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 r… |
getIndex() | number | Deprecated: 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. |
| Field | Type | Description |
|---|---|---|
__eventClass | string | "VarbitChanged": the class's name, which host APIs that take the class itself read. |
getVarbitIdgetVarbitId: (VarbitChanged) -> numberThe varbit that changed, or -1 for a varp change.
getVarpIdgetVarpId: (VarbitChanged) -> 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).
getValuegetValue: (VarbitChanged) -> numberThe new value.
getOldValuegetOldValue: (VarbitChanged) -> numberThe value before the change.
getLongValuegetLongValue: (VarbitChanged) -> 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 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.
getIndexgetIndex: (VarbitChanged) -> numberDeprecated: use getVarpId().
setValuesetValue: (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.
setVarbitIdsetVarbitId: (VarbitChanged, number) -> ()Set the varbit id, as setValue.
setVarpIdsetVarpId: (VarbitChanged, number) -> ()Set the varp id, as setValue.