It's sometimes very handy to be able to get constant field values in encoders. Consider following composite type:
<composite name="Price">
<type name="mantissa" primitiveType="int64"/>
<type name="exponent" primitiveType="int8" presence="constant">-7</type>
</composite>
If you encode some price value given in double
, you need to know the value of the exponent, but now there is no way to get it from an encoder.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4