A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/aeron-io/simple-binary-encoding/issues/531 below:

Getter for presence="constant" fields in generated encoders · Issue #531 · aeron-io/simple-binary-encoding · GitHub

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