Skip to main content

MAX_SAFE_CONST_CODE

Constant MAX_SAFE_CONST_CODE 

Source
pub const MAX_SAFE_CONST_CODE: i64 = 945;
Expand description

Maximum constant code the encoder may emit, matching Haxall’s BrioConsts.maxSafeCode = 945.

Haxall caps its writer at this value so that older peers (which may not recognise constants added in post-3.0.17 versions) are not sent an opaque varint they cannot look up. Codes 946–1002 (3.0.25 and 3.0.27 additions) are recognised during decoding but intentionally not emitted during encoding.