Companion

object Companion

Functions

auto
Link copied to clipboard
common
inline fun <T : Any> auto(size: Int, initializer: (Int) -> T): MutableBuffer<T>
Creates a MutableBuffer of given type T.
inline fun <T : Any> auto(type: KClass<out T>, size: Int, initializer: (Int) -> T): MutableBuffer<T>
Creates a MutableBuffer of given type.
boxing
Link copied to clipboard
common
inline fun <T> boxing(size: Int, initializer: (Int) -> T): MutableBuffer<T>
Create a boxing mutable buffer of given type
double
Link copied to clipboard
common
inline fun double(size: Int, initializer: (Int) -> Double): DoubleBuffer
Creates a DoubleBuffer with the specified size, where each element is calculated by calling the specified initializer function.
float
Link copied to clipboard
common
inline fun float(size: Int, initializer: (Int) -> Float): FloatBuffer
Creates a FloatBuffer with the specified size, where each element is calculated by calling the specified initializer function.
int
Link copied to clipboard
common
inline fun int(size: Int, initializer: (Int) -> Int): IntBuffer
Creates a IntBuffer with the specified size, where each element is calculated by calling the specified initializer function.
long
Link copied to clipboard
common
inline fun long(size: Int, initializer: (Int) -> Long): LongBuffer
Creates a LongBuffer with the specified size, where each element is calculated by calling the specified initializer function.
short
Link copied to clipboard
common
inline fun short(size: Int, initializer: (Int) -> Short): ShortBuffer
Creates a ShortBuffer with the specified size, where each element is calculated by calling the specified initializer function.

Extensions

bigInt
Link copied to clipboard
common
inline fun MutableBuffer.Companion.bigInt(size: Int, initializer: (Int) -> BigInt): MutableBuffer<BigInt>

Sources

common source
Link copied to clipboard