File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
library/core/src/commonMain/kotlin/io/matthewnelson/encoding/core Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -250,7 +250,7 @@ public sealed class Encoder<C: EncoderDecoder.Config>(config: C): Decoder<C>(con
250250 if (i == maxSize) return @block a
251251 val copy = a.copyOf(i)
252252 if (encoder.config.backFillBuffers) {
253- a.fill(' ' , 0 , i)
253+ a.fill(' \u0000 ' , 0 , i)
254254 }
255255 copy
256256 }
Original file line number Diff line number Diff line change @@ -122,8 +122,8 @@ public abstract class EncoderDecoder<C: EncoderDecoder.Config>(config: C): Encod
122122 * data (e.g. a [StringBuilder], [CharArray], or [ByteArray]). Depending on the underlying
123123 * encoding/decoding operation, such as an array over-allocation due to [encodeOutMaxSize]
124124 * or [decodeOutMaxSize], those initially allocated buffers may not be returned as the
125- * function's result. Prior versions of this library always back-filled them with `0` or a
126- * space character, but that can be computationally expensive for large datasets and
125+ * function's result. Prior versions of this library always back-filled them with `0` or the
126+ * null character `\u0000` , but that can be computationally expensive for large datasets and
127127 * potentially unnecessary if data is known to not be sensitive in nature.
128128 *
129129 * If `true`, any non-result buffer allocations are back-filled before being de-referenced
You can’t perform that action at this time.
0 commit comments