StringUTF16

Functions

Link copied to clipboard
fun charAt(value: ByteArray, index: Int): Char
Link copied to clipboard
fun checkBoundsOffCount(offset: Int, count: Int, val: ByteArray)
Link copied to clipboard
fun coderFromArrayLen(value: ByteArray, len: Int): Byte
Link copied to clipboard
fun compress(val: ByteArray, off: Int, count: Int): ByteArray

{@return Compress the internal byte array (containing UTF16) into a compact strings byte array} If all the chars are LATIN1, it returns an array with len == count, otherwise, it contains UTF16 characters.

fun compress(src: CharArray, off: Int, count: Int): ByteArray

{@return Compress the char array (containing UTF16) into a compact strings byte array} If all the chars are LATIN1, it returns an array with len == count, otherwise, it contains UTF16 characters.

fun compress(src: ByteArray, srcOff: Int, dst: ByteArray, dstOff: Int, len: Int): Int
Link copied to clipboard
fun compressByteToByte(src: ByteArray, srcOff: Int, dst: ByteArray, dstOff: Int, len: Int): Int
Link copied to clipboard
fun compressCharToChar(src: CharArray, srcOff: Int, dst: ByteArray, dstOff: Int, len: Int): Int
Link copied to clipboard
fun getChar(val: ByteArray, index: Int): Char
Link copied to clipboard
fun inflate(src: ByteArray, srcOff: Int, dst: ByteArray, dstOff: Int, len: Int)
Link copied to clipboard
fun length(value: ByteArray): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun newString(val: ByteArray, index: Int, len: Int): String
Link copied to clipboard
fun putChar(val: ByteArray, index: Int, c: Int)
Link copied to clipboard
fun toBytes(value: CharArray, off: Int, len: Int): ByteArray

ported from toBytes()