Companion

object Companion

Functions

Link copied to clipboard
fun createUninitializedByteString(size: Int): AvailObject

Create a mutable byte string of the specified size, where all elements are the null byte (code point U+0000).

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

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

Link copied to clipboard
fun mutableObjectFromNativeByteString(aNativeByteString: String): AvailObject

Convert the specified Java String of purely Latin-1 characters into an Avail A_String.

Properties