sizeUTF8

@JvmStatic
@JvmName(name = "sizeOf")
inline fun CharArray.sizeUTF8(utf8: UTF8): Long(source)

Calculate the UTF-8 byte output size for the provided array and ReplacementStrategy for the UTF8 encoder/decoder.

Throws

If an invalid character sequence is encountered and the strategy is ReplacementStrategy.THROW.


@JvmStatic
@JvmName(name = "sizeOf")
inline fun CharArray.sizeUTF8(config: UTF8.Config): Long(source)

Calculate the UTF-8 byte output size for the provided array and ReplacementStrategy for the UTF8.Config.

Throws

If an invalid character sequence is encountered and the strategy is ReplacementStrategy.THROW.


@JvmStatic
@JvmName(name = "sizeOf")
fun CharArray.sizeUTF8(strategy: UTF8.ReplacementStrategy): Long(source)

Calculate the UTF-8 byte output size for the provided array and ReplacementStrategy.

Throws

If an invalid character sequence is encountered and the strategy is ReplacementStrategy.THROW.


@JvmStatic
@JvmName(name = "sizeOf")
inline fun CharSequence.sizeUTF8(utf8: UTF8): Long(source)
@JvmStatic
@JvmName(name = "sizeOf")
inline fun CharIterator.sizeUTF8(utf8: UTF8): Long(source)

Calculate the UTF-8 byte output size for the provided characters and ReplacementStrategy for the UTF8 encoder/decoder.

Throws

If an invalid character sequence is encountered and the strategy is ReplacementStrategy.THROW.


@JvmStatic
@JvmName(name = "sizeOf")
inline fun CharSequence.sizeUTF8(config: UTF8.Config): Long(source)
@JvmStatic
@JvmName(name = "sizeOf")
inline fun CharIterator.sizeUTF8(config: UTF8.Config): Long(source)

Calculate the UTF-8 byte output size for the provided characters and ReplacementStrategy for the UTF8.Config.

Throws

If an invalid character sequence is encountered and the strategy is ReplacementStrategy.THROW.


@JvmStatic
@JvmName(name = "sizeOf")
fun CharSequence.sizeUTF8(strategy: UTF8.ReplacementStrategy): Long(source)
@JvmStatic
@JvmName(name = "sizeOf")
fun CharIterator.sizeUTF8(strategy: UTF8.ReplacementStrategy): Long(source)

Calculate the UTF-8 byte output size for the provided characters and ReplacementStrategy.

Throws

If an invalid character sequence is encountered and the strategy is ReplacementStrategy.THROW.