Constructs a new enumerator.
The name of the enumerator.
The numeric value of the enumerator.
ReadonlynameThe name of the enumerator.
ReadonlyvalueThe value of the enumerator.
Static ReadonlyClassClass instance. No longer supported.
Static ReadonlyF1Fixed 1-byte encoding.
Static ReadonlyF2Fixed 2-byte encoding.
Static ReadonlyF4Fixed 4-byte encoding.
Static ReadonlyF8Fixed 8-byte encoding.
Static ReadonlyFFixed "size encoding" using 4 bytes followed by data. Used by variable-size structs, and containers whose sizes can't be computed prior to unmarshaling.
Static ReadonlySize"Size encoding" using either 1 or 5 bytes. Used by enums, class identifiers, etc.
Static ReadonlyVVariable "size encoding" using either 1 or 5 bytes followed by data. Used by strings, fixed size structs, and containers whose size can be computed prior to marshaling.
Returns a string representation of the current enumerator.
A string representation of the current enumerator.
StaticvalueReturns the enumerator corresponding to the specified numeric value.
The enumerator value.
The matching enumerator, or undefined if no enumerator corresponds to the given value.
Optional format for encoding optional values.