Analog to {@link Layout#decode|Layout decode} for union discriminators.
The implementation of this method need not reference the buffer if variant information is available through other means.
Analog to {@link Layout#decode|Layout encode} for union discriminators.
The implementation of this method need not store the value if variant information is maintained through other means.
Generated using TypeDoc
An object that can provide a {@link Union#discriminator|discriminator} API for Union.
NOTE This is an abstract base class; you can create instances if it amuses you, but they won't support the {@link UnionDiscriminator#encode|encode} or {@link UnionDiscriminator#decode|decode} functions.
Default for {@link UnionDiscriminator#property|property}.