Companion

object Companion

Functions

Link copied to clipboard
inline fun <T : Any> auto(size: Int, initializer: (Int) -> T): Buffer<T>

Creates a Buffer of given type T. If the type is primitive, specialized buffers are used (IntBuffer, DoubleBuffer, etc.), ListBuffer is returned otherwise.

inline fun <T : Any> auto(type: KClass<T>, size: Int, initializer: (Int) -> T): Buffer<T>

Creates a Buffer of given type. If the type is primitive, specialized buffers are used (IntBuffer, DoubleBuffer, etc.), ListBuffer is returned otherwise.

Link copied to clipboard
inline fun <T> boxing(size: Int, initializer: (Int) -> T): Buffer<T>

Creates a ListBuffer of given type T with given size. Each element is calculated by calling the specified initializer function.

Link copied to clipboard
fun <T : Any> contentEquals(first: Buffer<T>, second: Buffer<T>): Boolean

Check the element-by-element match of content of two buffers.

Link copied to clipboard
fun toString(buffer: Buffer<*>): String

Extensions

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

Sources

Link copied to clipboard