maxDecodeEmit

@JvmField
val maxDecodeEmit: Int(source)

The maximum number of bytes that the implementation's Decoder.Feed can potentially emit on a single invocation of Decoder.Feed.consume, Decoder.Feed.flush, or Decoder.Feed.doFinal.

For example, Base16 decoding will emit 1 byte for every 2 characters of input, so its maximum emission is 1. Base32 decoding will emit 5 bytes for every 8 characters of input, so its maximum emission is 5. UTF8 "decoding" (i.e. text to UTF-8 byte transformations) can emit 4 bytes, but also depending on the size of the replacement byte sequence being used, can emit more; its maximum emission size needs a calculation, such as (replacementStrategy.size * 2).coerceAtLeast(4).

Value will be between 1 and 255 (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 Decoder.decodeBuffered and Decoder.decodeBufferedAsync).