Package-level declarations

Types

Link copied to clipboard

Helper class that ensures there is a common input type for EncoderDecoder.Config.decodeOutMaxSizeOrFail such that changes to the API (like adding support for a new type in Decoder extension functions) will not affect inheritors of EncoderDecoder.

Link copied to clipboard
abstract class FeedBuffer(val blockSize: Int, flush: FeedBuffer.Flush, finalize: FeedBuffer.Finalize)

Helper class for Decoder.Feed and Encoder.Feed to buffer their input until ready to output data via their supplied Decoder.OutFeed/Encoder.OutFeed.

Link copied to clipboard
class LineBreakOutFeed(val interval: Byte, val resetOnFlush: Boolean, out: Encoder.OutFeed) : Encoder.OutFeed

A Wrapper around another Encoder.OutFeed to hijack the output and insert new line characters at every expressed interval.

Functions

Link copied to clipboard
inline fun StringBuilder.wipe(): StringBuilder

Wipes the StringBuilder backing array from index 0 to StringBuilder.length (exclusive) with the null character \u0000, and then sets it's length back to 0. If StringBuilder.length is 0, then StringBuilder.capacity will be used.

fun StringBuilder.wipe(len: Int): StringBuilder

Wipes the StringBuilder backing array from index 0 to len (exclusive) with the null character \u0000, and then sets it's length back to 0. If len is less than 1 or greater than StringBuilder.capacity, then StringBuilder.capacity is used in place of len.