Constructor
(abstract) new UnionDiscriminator(propertyopt)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
property |
string |
<optional> |
Default for property. |
Members
property
The property to be used when the discriminator is referenced in isolation (generally when Union decode cannot delegate to a specific variant).
Methods
decode()
Analog to Layout decode for union discriminators.
The implementation of this method need not reference the buffer if variant information is available through other means.
encode()
Analog to Layout encode for union discriminators.
The implementation of this method need not store the value if variant information is maintained through other means.