Companion

Functions

Link copied to clipboard
@JvmStatic
inline fun CharArray.decodeBuffered(decoder: Decoder<*>, throwOnOverflow: Boolean, noinline action: (buf: ByteArray, offset: Int, len: Int) -> Unit): Long

Decode a CharArray using a buffer of maximum size DEFAULT_BUFFER_SIZE.

@JvmStatic
inline fun CharSequence.decodeBuffered(decoder: Decoder<*>, throwOnOverflow: Boolean, noinline action: (buf: ByteArray, offset: Int, len: Int) -> Unit): Long

Decode a CharSequence using a buffer of maximum size DEFAULT_BUFFER_SIZE.

@JvmStatic
fun CharArray.decodeBuffered(decoder: Decoder<*>, throwOnOverflow: Boolean, buf: ByteArray, action: (buf: ByteArray, offset: Int, len: Int) -> Unit): Long

Decode a CharArray using the provided pre-allocated, reusable, buf array.

@JvmStatic
fun CharArray.decodeBuffered(decoder: Decoder<*>, throwOnOverflow: Boolean, maxBufSize: Int, action: (buf: ByteArray, offset: Int, len: Int) -> Unit): Long

Decode a CharArray using a buffer of maximum size maxBufSize.

@JvmStatic
fun CharSequence.decodeBuffered(decoder: Decoder<*>, throwOnOverflow: Boolean, buf: ByteArray, action: (buf: ByteArray, offset: Int, len: Int) -> Unit): Long

Decode a CharSequence using the provided pre-allocated, reusable, buf array.

@JvmStatic
fun CharSequence.decodeBuffered(decoder: Decoder<*>, throwOnOverflow: Boolean, maxBufSize: Int, action: (buf: ByteArray, offset: Int, len: Int) -> Unit): Long

Decode a CharSequence using a buffer of maximum size maxBufSize.

@JvmStatic
inline fun CharArray.decodeBuffered(decoder: Decoder<*>, throwOnOverflow: Boolean, offset: Int, len: Int, noinline action: (buf: ByteArray, offset: Int, len: Int) -> Unit): Long

Decode len number of characters from the array, starting at index offset, using a buffer of maximum size DEFAULT_BUFFER_SIZE.

@JvmStatic
inline fun CharSequence.decodeBuffered(decoder: Decoder<*>, throwOnOverflow: Boolean, offset: Int, len: Int, noinline action: (buf: ByteArray, offset: Int, len: Int) -> Unit): Long

Decode len number of characters from the sequence, starting at index offset, using a buffer of maximum size DEFAULT_BUFFER_SIZE.

@JvmStatic
fun CharArray.decodeBuffered(decoder: Decoder<*>, throwOnOverflow: Boolean, offset: Int, len: Int, buf: ByteArray, action: (buf: ByteArray, offset: Int, len: Int) -> Unit): Long

Decode len number of characters from the array, starting at index offset, using the provided pre-allocated, reusable, buf array.

@JvmStatic
fun CharArray.decodeBuffered(decoder: Decoder<*>, throwOnOverflow: Boolean, offset: Int, len: Int, maxBufSize: Int, action: (buf: ByteArray, offset: Int, len: Int) -> Unit): Long

Decode len number of characters from the array, starting at index offset, using a buffer of maximum size maxBufSize.

@JvmStatic
fun CharSequence.decodeBuffered(decoder: Decoder<*>, throwOnOverflow: Boolean, offset: Int, len: Int, buf: ByteArray, action: (buf: ByteArray, offset: Int, len: Int) -> Unit): Long

Decode len number of characters from the sequence, starting at index offset, using the provided pre-allocated, reusable, buf array.

@JvmStatic
fun CharSequence.decodeBuffered(decoder: Decoder<*>, throwOnOverflow: Boolean, offset: Int, len: Int, maxBufSize: Int, action: (buf: ByteArray, offset: Int, len: Int) -> Unit): Long

Decode len number of characters from the sequence, starting at index offset, using a buffer of maximum size maxBufSize.

Link copied to clipboard
@JvmStatic
inline suspend fun CharArray.decodeBufferedAsync(decoder: Decoder<*>, throwOnOverflow: Boolean, noinline action: suspend (buf: ByteArray, offset: Int, len: Int) -> Unit): Long

Decode a CharArray using a buffer of maximum size DEFAULT_BUFFER_SIZE.

@JvmStatic
inline suspend fun CharSequence.decodeBufferedAsync(decoder: Decoder<*>, throwOnOverflow: Boolean, noinline action: suspend (buf: ByteArray, offset: Int, len: Int) -> Unit): Long

Decode a CharSequence using a buffer of maximum size DEFAULT_BUFFER_SIZE.

@JvmStatic
suspend fun CharArray.decodeBufferedAsync(decoder: Decoder<*>, throwOnOverflow: Boolean, buf: ByteArray, action: suspend (buf: ByteArray, offset: Int, len: Int) -> Unit): Long

Decode a CharArray using the provided pre-allocated, reusable, buf array.

@JvmStatic
suspend fun CharArray.decodeBufferedAsync(decoder: Decoder<*>, throwOnOverflow: Boolean, maxBufSize: Int, action: suspend (buf: ByteArray, offset: Int, len: Int) -> Unit): Long

Decode a CharArray using a buffer of maximum size maxBufSize.

@JvmStatic
suspend fun CharSequence.decodeBufferedAsync(decoder: Decoder<*>, throwOnOverflow: Boolean, buf: ByteArray, action: suspend (buf: ByteArray, offset: Int, len: Int) -> Unit): Long

Decode a CharSequence using the provided pre-allocated, reusable, buf array.

@JvmStatic
suspend fun CharSequence.decodeBufferedAsync(decoder: Decoder<*>, throwOnOverflow: Boolean, maxBufSize: Int, action: suspend (buf: ByteArray, offset: Int, len: Int) -> Unit): Long

Decode a CharSequence using a buffer of maximum size maxBufSize.

@JvmStatic
inline suspend fun CharArray.decodeBufferedAsync(decoder: Decoder<*>, throwOnOverflow: Boolean, offset: Int, len: Int, noinline action: suspend (buf: ByteArray, offset: Int, len: Int) -> Unit): Long

Decode len number of characters from the array, starting at index offset, using a buffer of maximum size DEFAULT_BUFFER_SIZE.

@JvmStatic
inline suspend fun CharSequence.decodeBufferedAsync(decoder: Decoder<*>, throwOnOverflow: Boolean, offset: Int, len: Int, noinline action: suspend (buf: ByteArray, offset: Int, len: Int) -> Unit): Long

Decode len number of characters from the sequence, starting at index offset, using a buffer of maximum size DEFAULT_BUFFER_SIZE.

@JvmStatic
suspend fun CharArray.decodeBufferedAsync(decoder: Decoder<*>, throwOnOverflow: Boolean, offset: Int, len: Int, buf: ByteArray, action: suspend (buf: ByteArray, offset: Int, len: Int) -> Unit): Long

Decode len number of characters from the array, starting at index offset, using the provided pre-allocated, reusable, buf array.

@JvmStatic
suspend fun CharArray.decodeBufferedAsync(decoder: Decoder<*>, throwOnOverflow: Boolean, offset: Int, len: Int, maxBufSize: Int, action: suspend (buf: ByteArray, offset: Int, len: Int) -> Unit): Long

Decode len number of characters from the array, starting at index offset, using a buffer of maximum size maxBufSize.

@JvmStatic
suspend fun CharSequence.decodeBufferedAsync(decoder: Decoder<*>, throwOnOverflow: Boolean, offset: Int, len: Int, buf: ByteArray, action: suspend (buf: ByteArray, offset: Int, len: Int) -> Unit): Long

Decode len number of characters from the sequence, starting at index offset, using the provided pre-allocated, reusable, buf array.

@JvmStatic
suspend fun CharSequence.decodeBufferedAsync(decoder: Decoder<*>, throwOnOverflow: Boolean, offset: Int, len: Int, maxBufSize: Int, action: suspend (buf: ByteArray, offset: Int, len: Int) -> Unit): Long

Decode len number of characters from the sequence, starting at index offset, using a buffer of maximum size maxBufSize.

Link copied to clipboard
@JvmStatic
fun CharArray.decodeToByteArray(decoder: Decoder<*>): ByteArray

Decode a CharArray.

@JvmStatic
fun CharSequence.decodeToByteArray(decoder: Decoder<*>): ByteArray

Decode a CharSequence.

@JvmStatic
fun CharArray.decodeToByteArray(decoder: Decoder<*>, offset: Int, len: Int): ByteArray

Decode len number of characters from the array, starting at index offset.

@JvmStatic
fun CharSequence.decodeToByteArray(decoder: Decoder<*>, offset: Int, len: Int): ByteArray

Decode len number of characters from the sequence, starting at index offset.

Link copied to clipboard
@JvmStatic
fun CharArray.decodeToByteArrayOrNull(decoder: Decoder<*>): ByteArray?

Decode a CharArray.

@JvmStatic
fun CharSequence.decodeToByteArrayOrNull(decoder: Decoder<*>): ByteArray?

Decode a CharSequence.

@JvmStatic
fun CharArray.decodeToByteArrayOrNull(decoder: Decoder<*>, offset: Int, len: Int): ByteArray?

Decode len number of characters from the array, starting at index offset.

@JvmStatic
fun CharSequence.decodeToByteArrayOrNull(decoder: Decoder<*>, offset: Int, len: Int): ByteArray?

Decode len number of characters from the sequence, starting at index offset.