Companion

object Companion

Functions

Link copied to clipboard
fun generateTwoByteString(size: Int, generator: (Int) -> UShort): AvailObject

Create an object of the appropriate size, whose descriptor is an instance of TwoByteStringDescriptor. Note that it can only store Unicode characters from the Basic Multilingual Plane (i.e., those having Unicode code points 0..65535). Run the generator for each position in ascending order to produce the code points with which to populate the string.

Link copied to clipboard

Create a mutable instance of TwoByteStringDescriptor with the specified Java String's characters.

Link copied to clipboard

Create a new mutable two-byte string with the specified number of elements.