maxEncodeEmitWithLineBreak

The maximum number of characters that the Encoder.Feed produced by Encoder.newEncoderFeed can potentially emit on a single invocation of Encoder.Feed.consume, Encoder.Feed.flush, or Encoder.Feed.doFinal. This is the calculated result from Companion.calculateMaxEncodeEmit using maxEncodeEmit and lineBreakInterval as arguments.

NOTE: This value is not applicable if passing as an argument to Encoder.newEncoderFeed your own LineBreakOutFeed that has been instantiated with a value than lineBreakInterval. Passing a custom stack of Encoder.OutFeed which would inflate the encoded output size must be calculated using maxEncodeEmit and calculateMaxEncodeEmit.

Value will be between 1 and 510 (inclusive), or -1 which indicates that the EncoderDecoder.Config implementation has not updated to the new constructor introduced in version 2.6.0, and as such is unable to be used with :core module APIs dependent on this value (such as Encoder.encodeBuffered and Encoder.encodeBufferedAsync).

See also