Package kool.lib

Types

ByteBufferIterator
Link copied to clipboard
class ByteBufferIterator(byteBuffer: ByteBuffer) : Iterator<Byte>
CharBufferIterator
Link copied to clipboard
class CharBufferIterator(charBuffer: CharBuffer) : Iterator<Char>
DoubleBufferIterator
Link copied to clipboard
class DoubleBufferIterator(doubleBuffer: DoubleBuffer) : Iterator<Double>
FloatBufferIterator
Link copied to clipboard
class FloatBufferIterator(floatBuffer: FloatBuffer) : Iterator<Float>
IntBufferIterator
Link copied to clipboard
class IntBufferIterator(intBuffer: IntBuffer) : Iterator<Int>
LongBufferIterator
Link copied to clipboard
class LongBufferIterator(longBuffer: LongBuffer) : Iterator<Long>
maps
Link copied to clipboard
object maps
ShortBufferIterator
Link copied to clipboard
class ShortBufferIterator(shortBuffer: ShortBuffer) : Iterator<Short>

Functions

all
Link copied to clipboard
inline fun ByteBuffer.all(predicate: (Byte) -> Boolean): Boolean
Returns true if all elements match the given predicate.
inline fun CharBuffer.all(predicate: (Char) -> Boolean): Boolean
Returns true if all elements match the given predicate.
inline fun DoubleBuffer.all(predicate: (Double) -> Boolean): Boolean
Returns true if all elements match the given predicate.
inline fun FloatBuffer.all(predicate: (Float) -> Boolean): Boolean
Returns true if all elements match the given predicate.
inline fun IntBuffer.all(predicate: (Int) -> Boolean): Boolean
Returns true if all elements match the given predicate.
inline fun LongBuffer.all(predicate: (Long) -> Boolean): Boolean
Returns true if all elements match the given predicate.
inline fun ShortBuffer.all(predicate: (Short) -> Boolean): Boolean
Returns true if all elements match the given predicate.
any
Link copied to clipboard
fun ByteBuffer.any(): Boolean
Returns true if buffer has at least one element.
fun CharBuffer.any(): Boolean
Returns true if buffer has at least one element.
fun DoubleBuffer.any(): Boolean
Returns true if buffer has at least one element.
fun FloatBuffer.any(): Boolean
Returns true if buffer has at least one element.
fun IntBuffer.any(): Boolean
Returns true if buffer has at least one element.
fun LongBuffer.any(): Boolean
Returns true if buffer has at least one element.
fun ShortBuffer.any(): Boolean
Returns true if buffer has at least one element.
inline fun ByteBuffer.any(predicate: (Byte) -> Boolean): Boolean
Returns true if at least one element matches the given predicate.
inline fun CharBuffer.any(predicate: (Char) -> Boolean): Boolean
Returns true if at least one element matches the given predicate.
inline fun DoubleBuffer.any(predicate: (Double) -> Boolean): Boolean
Returns true if at least one element matches the given predicate.
inline fun FloatBuffer.any(predicate: (Float) -> Boolean): Boolean
Returns true if at least one element matches the given predicate.
inline fun IntBuffer.any(predicate: (Int) -> Boolean): Boolean
Returns true if at least one element matches the given predicate.
inline fun LongBuffer.any(predicate: (Long) -> Boolean): Boolean
Returns true if at least one element matches the given predicate.
inline fun ShortBuffer.any(predicate: (Short) -> Boolean): Boolean
Returns true if at least one element matches the given predicate.
asIterable
Link copied to clipboard
fun ByteBuffer.asIterable(): Iterable<Byte>
Creates an Iterable instance that wraps the original buffer returning its elements when being iterated.
fun CharBuffer.asIterable(): Iterable<Char>
Creates an Iterable instance that wraps the original buffer returning its elements when being iterated.
fun DoubleBuffer.asIterable(): Iterable<Double>
Creates an Iterable instance that wraps the original buffer returning its elements when being iterated.
fun FloatBuffer.asIterable(): Iterable<Float>
Creates an Iterable instance that wraps the original buffer returning its elements when being iterated.
fun IntBuffer.asIterable(): Iterable<Int>
Creates an Iterable instance that wraps the original buffer returning its elements when being iterated.
fun LongBuffer.asIterable(): Iterable<Long>
Creates an Iterable instance that wraps the original buffer returning its elements when being iterated.
fun ShortBuffer.asIterable(): Iterable<Short>
Creates an Iterable instance that wraps the original buffer returning its elements when being iterated.
asList
Link copied to clipboard
fun ByteBuffer.asList(): List<Byte>
Returns a List that wraps the original buffer.
fun CharBuffer.asList(): List<Char>
Returns a List that wraps the original buffer.
fun DoubleBuffer.asList(): List<Double>
Returns a List that wraps the original buffer.
fun FloatBuffer.asList(): List<Float>
Returns a List that wraps the original buffer.
fun IntBuffer.asList(): List<Int>
Returns a List that wraps the original buffer.
fun LongBuffer.asList(): List<Long>
Returns a List that wraps the original buffer.
fun ShortBuffer.asList(): List<Short>
Returns a List that wraps the original buffer.
asSequence
Link copied to clipboard
fun ByteBuffer.asSequence(): Sequence<Byte>
Creates a Sequence instance that wraps the original buffer returning its elements when being iterated.
fun CharBuffer.asSequence(): Sequence<Char>
Creates a Sequence instance that wraps the original buffer returning its elements when being iterated.
fun DoubleBuffer.asSequence(): Sequence<Double>
Creates a Sequence instance that wraps the original buffer returning its elements when being iterated.
fun FloatBuffer.asSequence(): Sequence<Float>
Creates a Sequence instance that wraps the original buffer returning its elements when being iterated.
fun IntBuffer.asSequence(): Sequence<Int>
Creates a Sequence instance that wraps the original buffer returning its elements when being iterated.
fun LongBuffer.asSequence(): Sequence<Long>
Creates a Sequence instance that wraps the original buffer returning its elements when being iterated.
fun ShortBuffer.asSequence(): Sequence<Short>
Creates a Sequence instance that wraps the original buffer returning its elements when being iterated.
associate
Link copied to clipboard
inline fun <K, V> ByteBuffer.associate(transform: (Byte) -> Pair<K, V>): Map<K, V>
Returns a Map containing key-value pairs provided by transform function applied to elements of the given array.
inline fun <K, V> CharBuffer.associate(transform: (Char) -> Pair<K, V>): Map<K, V>
Returns a Map containing key-value pairs provided by transform function applied to elements of the given array.
inline fun <K, V> DoubleBuffer.associate(transform: (Double) -> Pair<K, V>): Map<K, V>
Returns a Map containing key-value pairs provided by transform function applied to elements of the given array.
inline fun <K, V> FloatBuffer.associate(transform: (Float) -> Pair<K, V>): Map<K, V>
Returns a Map containing key-value pairs provided by transform function applied to elements of the given array.
inline fun <K, V> IntBuffer.associate(transform: (Int) -> Pair<K, V>): Map<K, V>
Returns a Map containing key-value pairs provided by transform function applied to elements of the given array.
inline fun <K, V> LongBuffer.associate(transform: (Long) -> Pair<K, V>): Map<K, V>
Returns a Map containing key-value pairs provided by transform function applied to elements of the given array.
inline fun <K, V> ShortBuffer.associate(transform: (Short) -> Pair<K, V>): Map<K, V>
Returns a Map containing key-value pairs provided by transform function applied to elements of the given array.
associateBy
Link copied to clipboard
inline fun <K> ByteBuffer.associateBy(keySelector: (Byte) -> K): Map<K, Byte>
Returns a Map containing the elements from the given array indexed by the key returned from keySelector function applied to each element.
inline fun <K> CharBuffer.associateBy(keySelector: (Char) -> K): Map<K, Char>
Returns a Map containing the elements from the given array indexed by the key returned from keySelector function applied to each element.
inline fun <K> DoubleBuffer.associateBy(keySelector: (Double) -> K): Map<K, Double>
Returns a Map containing the elements from the given array indexed by the key returned from keySelector function applied to each element.
inline fun <K> FloatBuffer.associateBy(keySelector: (Float) -> K): Map<K, Float>
Returns a Map containing the elements from the given array indexed by the key returned from keySelector function applied to each element.
inline fun <K> IntBuffer.associateBy(keySelector: (Int) -> K): Map<K, Int>
Returns a Map containing the elements from the given array indexed by the key returned from keySelector function applied to each element.
inline fun <K> LongBuffer.associateBy(keySelector: (Long) -> K): Map<K, Long>
Returns a Map containing the elements from the given array indexed by the key returned from keySelector function applied to each element.
inline fun <K> ShortBuffer.associateBy(keySelector: (Short) -> K): Map<K, Short>
Returns a Map containing the elements from the given array indexed by the key returned from keySelector function applied to each element.
inline fun <K, V> ByteBuffer.associateBy(keySelector: (Byte) -> K, valueTransform: (Byte) -> V): Map<K, V>
Returns a Map containing the values provided by valueTransform and indexed by keySelector functions applied to elements of the given array.
inline fun <K, V> CharBuffer.associateBy(keySelector: (Char) -> K, valueTransform: (Char) -> V): Map<K, V>
Returns a Map containing the values provided by valueTransform and indexed by keySelector functions applied to elements of the given array.
inline fun <K, V> DoubleBuffer.associateBy(keySelector: (Double) -> K, valueTransform: (Double) -> V): Map<K, V>
Returns a Map containing the values provided by valueTransform and indexed by keySelector functions applied to elements of the given array.
inline fun <K, V> FloatBuffer.associateBy(keySelector: (Float) -> K, valueTransform: (Float) -> V): Map<K, V>
Returns a Map containing the values provided by valueTransform and indexed by keySelector functions applied to elements of the given array.
inline fun <K, V> IntBuffer.associateBy(keySelector: (Int) -> K, valueTransform: (Int) -> V): Map<K, V>
Returns a Map containing the values provided by valueTransform and indexed by keySelector functions applied to elements of the given array.
inline fun <K, V> LongBuffer.associateBy(keySelector: (Long) -> K, valueTransform: (Long) -> V): Map<K, V>
Returns a Map containing the values provided by valueTransform and indexed by keySelector functions applied to elements of the given array.
inline fun <K, V> ShortBuffer.associateBy(keySelector: (Short) -> K, valueTransform: (Short) -> V): Map<K, V>
Returns a Map containing the values provided by valueTransform and indexed by keySelector functions applied to elements of the given array.
associateByTo
Link copied to clipboard
inline fun <K, M : MutableMap<in K, in Byte>> ByteBuffer.associateByTo(destination: M, keySelector: (Byte) -> K): M
Populates and returns the destination mutable map with key-value pairs, where key is provided by the keySelector function applied to each element of the given array and value is the element itself.
inline fun <K, M : MutableMap<in K, in Char>> CharBuffer.associateByTo(destination: M, keySelector: (Char) -> K): M
Populates and returns the destination mutable map with key-value pairs, where key is provided by the keySelector function applied to each element of the given array and value is the element itself.
inline fun <K, M : MutableMap<in K, in Double>> DoubleBuffer.associateByTo(destination: M, keySelector: (Double) -> K): M
Populates and returns the destination mutable map with key-value pairs, where key is provided by the keySelector function applied to each element of the given array and value is the element itself.
inline fun <K, M : MutableMap<in K, in Float>> FloatBuffer.associateByTo(destination: M, keySelector: (Float) -> K): M
Populates and returns the destination mutable map with key-value pairs, where key is provided by the keySelector function applied to each element of the given array and value is the element itself.
inline fun <K, M : MutableMap<in K, in Int>> IntBuffer.associateByTo(destination: M, keySelector: (Int) -> K): M
Populates and returns the destination mutable map with key-value pairs, where key is provided by the keySelector function applied to each element of the given array and value is the element itself.
inline fun <K, M : MutableMap<in K, in Long>> LongBuffer.associateByTo(destination: M, keySelector: (Long) -> K): M
Populates and returns the destination mutable map with key-value pairs, where key is provided by the keySelector function applied to each element of the given array and value is the element itself.
inline fun <K, M : MutableMap<in K, in Short>> ShortBuffer.associateByTo(destination: M, keySelector: (Short) -> K): M
Populates and returns the destination mutable map with key-value pairs, where key is provided by the keySelector function applied to each element of the given array and value is the element itself.
inline fun <K, V, M : MutableMap<in K, in V>> ByteBuffer.associateByTo(destination: M, keySelector: (Byte) -> K, valueTransform: (Byte) -> V): M
Populates and returns the destination mutable map with key-value pairs, where key is provided by the keySelector function and and value is provided by the valueTransform function applied to elements of the given array.
inline fun <K, V, M : MutableMap<in K, in V>> CharBuffer.associateByTo(destination: M, keySelector: (Char) -> K, valueTransform: (Char) -> V): M
Populates and returns the destination mutable map with key-value pairs, where key is provided by the keySelector function and and value is provided by the valueTransform function applied to elements of the given array.
inline fun <K, V, M : MutableMap<in K, in V>> DoubleBuffer.associateByTo(destination: M, keySelector: (Double) -> K, valueTransform: (Double) -> V): M
Populates and returns the destination mutable map with key-value pairs, where key is provided by the keySelector function and and value is provided by the valueTransform function applied to elements of the given array.
inline fun <K, V, M : MutableMap<in K, in V>> FloatBuffer.associateByTo(destination: M, keySelector: (Float) -> K, valueTransform: (Float) -> V): M
Populates and returns the destination mutable map with key-value pairs, where key is provided by the keySelector function and and value is provided by the valueTransform function applied to elements of the given array.
inline fun <K, V, M : MutableMap<in K, in V>> IntBuffer.associateByTo(destination: M, keySelector: (Int) -> K, valueTransform: (Int) -> V): M
Populates and returns the destination mutable map with key-value pairs, where key is provided by the keySelector function and and value is provided by the valueTransform function applied to elements of the given array.
inline fun <K, V, M : MutableMap<in K, in V>> LongBuffer.associateByTo(destination: M, keySelector: (Long) -> K, valueTransform: (Long) -> V): M
Populates and returns the destination mutable map with key-value pairs, where key is provided by the keySelector function and and value is provided by the valueTransform function applied to elements of the given array.
inline fun <K, V, M : MutableMap<in K, in V>> ShortBuffer.associateByTo(destination: M, keySelector: (Short) -> K, valueTransform: (Short) -> V): M
Populates and returns the destination mutable map with key-value pairs, where key is provided by the keySelector function and and value is provided by the valueTransform function applied to elements of the given array.
associateTo
Link copied to clipboard
inline fun <K, V, M : MutableMap<in K, in V>> ByteBuffer.associateTo(destination: M, transform: (Byte) -> Pair<K, V>): M
Populates and returns the destination mutable map with key-value pairs provided by transform function applied to each element of the given array.
inline fun <K, V, M : MutableMap<in K, in V>> CharBuffer.associateTo(destination: M, transform: (Char) -> Pair<K, V>): M
Populates and returns the destination mutable map with key-value pairs provided by transform function applied to each element of the given array.
inline fun <K, V, M : MutableMap<in K, in V>> DoubleBuffer.associateTo(destination: M, transform: (Double) -> Pair<K, V>): M
Populates and returns the destination mutable map with key-value pairs provided by transform function applied to each element of the given array.
inline fun <K, V, M : MutableMap<in K, in V>> FloatBuffer.associateTo(destination: M, transform: (Float) -> Pair<K, V>): M
Populates and returns the destination mutable map with key-value pairs provided by transform function applied to each element of the given array.
inline fun <K, V, M : MutableMap<in K, in V>> IntBuffer.associateTo(destination: M, transform: (Int) -> Pair<K, V>): M
Populates and returns the destination mutable map with key-value pairs provided by transform function applied to each element of the given array.
inline fun <K, V, M : MutableMap<in K, in V>> LongBuffer.associateTo(destination: M, transform: (Long) -> Pair<K, V>): M
Populates and returns the destination mutable map with key-value pairs provided by transform function applied to each element of the given array.
inline fun <K, V, M : MutableMap<in K, in V>> ShortBuffer.associateTo(destination: M, transform: (Short) -> Pair<K, V>): M
Populates and returns the destination mutable map with key-value pairs provided by transform function applied to each element of the given array.
associateWith
Link copied to clipboard
inline fun <V> ByteBuffer.associateWith(valueSelector: (Byte) -> V): Map<Byte, V>
Returns a Map where keys are elements from the given array and values are produced by the valueSelector function applied to each element.
inline fun <V> CharBuffer.associateWith(valueSelector: (Char) -> V): Map<Char, V>
Returns a Map where keys are elements from the given array and values are produced by the valueSelector function applied to each element.
inline fun <V> DoubleBuffer.associateWith(valueSelector: (Double) -> V): Map<Double, V>
Returns a Map where keys are elements from the given array and values are produced by the valueSelector function applied to each element.
inline fun <V> FloatBuffer.associateWith(valueSelector: (Float) -> V): Map<Float, V>
Returns a Map where keys are elements from the given array and values are produced by the valueSelector function applied to each element.
inline fun <V> IntBuffer.associateWith(valueSelector: (Int) -> V): Map<Int, V>
Returns a Map where keys are elements from the given array and values are produced by the valueSelector function applied to each element.
inline fun <V> LongBuffer.associateWith(valueSelector: (Long) -> V): Map<Long, V>
Returns a Map where keys are elements from the given array and values are produced by the valueSelector function applied to each element.
inline fun <V> ShortBuffer.associateWith(valueSelector: (Short) -> V): Map<Short, V>
Returns a Map where keys are elements from the given array and values are produced by the valueSelector function applied to each element.
associateWithTo
Link copied to clipboard
inline fun <V, M : MutableMap<in Byte, in V>> ByteBuffer.associateWithTo(destination: M, valueSelector: (Byte) -> V): M
Populates and returns the destination mutable map with key-value pairs for each element of the given array, where key is the element itself and value is provided by the valueSelector function applied to that key.
inline fun <V, M : MutableMap<in Char, in V>> CharBuffer.associateWithTo(destination: M, valueSelector: (Char) -> V): M
Populates and returns the destination mutable map with key-value pairs for eachBuffer of the given array, where key is the element itself and value is provided by the valueSelector function applied to that key.
inline fun <V, M : MutableMap<in Double, in V>> DoubleBuffer.associateWithTo(destination: M, valueSelector: (Double) -> V): M
Populates and returns the destination mutable map with key-value pairs for each element of the given array, where key is the element itself and value is provided by the valueSelector function applied to that key.
inline fun <V, M : MutableMap<in Float, in V>> FloatBuffer.associateWithTo(destination: M, valueSelector: (Float) -> V): M
Populates and returns the destination mutable map with key-value pairs for each element of the given array, where key is the element itself and value is provided by the valueSelector function applied to that key.
inline fun <V, M : MutableMap<in Int, in V>> IntBuffer.associateWithTo(destination: M, valueSelector: (Int) -> V): M
Populates and returns the destination mutable map with key-value pairs for each element of the given array, where key is the element itself and value is provided by the valueSelector function applied to that key.
inline fun <V, M : MutableMap<in Long, in V>> LongBuffer.associateWithTo(destination: M, valueSelector: (Long) -> V): M
Populates and returns the destination mutable map with key-value pairs for each element of the given array, where key is the element itself and value is provided by the valueSelector function applied to that key.
inline fun <V, M : MutableMap<in Short, in V>> ShortBuffer.associateWithTo(destination: M, valueSelector: (Short) -> V): M
Populates and returns the destination mutable map with key-value pairs for each element of the given array, where key is the element itself and value is provided by the valueSelector function applied to that key.
average
Link copied to clipboard
fun ByteBuffer.average(): Double
Returns an average value of elements in the buffer.
fun DoubleBuffer.average(): Double
Returns an average value of elements in the buffer.
fun FloatBuffer.average(): Double
Returns an average value of elements in the buffer.
fun IntBuffer.average(): Double
Returns an average value of elements in the buffer.
fun LongBuffer.average(): Double
Returns an average value of elements in the buffer.
fun ShortBuffer.average(): Double
Returns an average value of elements in the buffer.
collectionSizeOrDefault
Link copied to clipboard
fun <T> Iterable<T>.collectionSizeOrDefault(default: Int): Int
Returns the size of this iterable if it is known, or the specified default value otherwise.
component1
Link copied to clipboard
operator fun ByteBuffer.component1(): Byte
Returns 1st element from the collection.
operator fun CharBuffer.component1(): Char
Returns 1st element from the collection.
operator fun DoubleBuffer.component1(): Double
Returns 1st element from the collection.
operator fun FloatBuffer.component1(): Float
Returns 1st element from the collection.
operator fun IntBuffer.component1(): Int
Returns 1st element from the collection.
operator fun LongBuffer.component1(): Long
Returns 1st element from the collection.
operator fun ShortBuffer.component1(): Short
Returns 1st element from the collection.
component2
Link copied to clipboard
operator fun ByteBuffer.component2(): Byte
Returns 2nd element from the collection.
operator fun CharBuffer.component2(): Char
Returns 2nd element from the collection.
operator fun DoubleBuffer.component2(): Double
Returns 2nd element from the collection.
operator fun FloatBuffer.component2(): Float
Returns 2nd element from the collection.
operator fun IntBuffer.component2(): Int
Returns 2nd element from the collection.
operator fun LongBuffer.component2(): Long
Returns 2nd element from the collection.
operator fun ShortBuffer.component2(): Short
Returns 2nd element from the collection.
component3
Link copied to clipboard
operator fun ByteBuffer.component3(): Byte
Returns 3rd element from the collection.
operator fun CharBuffer.component3(): Char
Returns 3rd element from the collection.
operator fun DoubleBuffer.component3(): Double
Returns 3rd element from the collection.
operator fun FloatBuffer.component3(): Float
Returns 3rd element from the collection.
operator fun IntBuffer.component3(): Int
Returns 3rd element from the collection.
operator fun LongBuffer.component3(): Long
Returns 3rd element from the collection.
operator fun ShortBuffer.component3(): Short
Returns 3rd element from the collection.
component4
Link copied to clipboard
operator fun ByteBuffer.component4(): Byte
Returns 4th element from the collection.
operator fun CharBuffer.component4(): Char
Returns 4th element from the collection.
operator fun DoubleBuffer.component4(): Double
Returns 4th element from the collection.
operator fun FloatBuffer.component4(): Float
Returns 4th element from the collection.
operator fun IntBuffer.component4(): Int
Returns 4th element from the collection.
operator fun LongBuffer.component4(): Long
Returns 4th element from the collection.
operator fun ShortBuffer.component4(): Short
Returns 4th element from the collection.
component5
Link copied to clipboard
operator fun ByteBuffer.component5(): Byte
Returns 5th element from the collection.
operator fun CharBuffer.component5(): Char
Returns 5th element from the collection.
operator fun DoubleBuffer.component5(): Double
Returns 5th element from the collection.
operator fun FloatBuffer.component5(): Float
Returns 5th element from the collection.
operator fun IntBuffer.component5(): Int
Returns 5th element from the collection.
operator fun LongBuffer.component5(): Long
Returns 5th element from the collection.
operator fun ShortBuffer.component5(): Short
Returns 5th element from the collection.
contains
Link copied to clipboard
operator fun ByteBuffer.contains(element: Byte): Boolean
Returns true if element is found in the buffer.
operator fun CharBuffer.contains(element: Char): Boolean
Returns true if element is found in the buffer.
operator fun DoubleBuffer.contains(element: Double): Boolean
Returns true if element is found in the buffer.
operator fun FloatBuffer.contains(element: Float): Boolean
Returns true if element is found in the buffer.
operator fun IntBuffer.contains(element: Int): Boolean
Returns true if element is found in the buffer.
operator fun LongBuffer.contains(element: Long): Boolean
Returns true if element is found in the buffer.
operator fun ShortBuffer.contains(element: Short): Boolean
Returns true if element is found in the buffer.
contentEquals
Link copied to clipboard
infix fun ByteBuffer?.contentEquals(other: ByteArray?): Boolean
Returns true if the two specified arrays are structurally equal to one another, i.e.
infix fun CharBuffer?.contentEquals(other: CharArray?): Boolean
Returns true if the two specified arrays are structurally equal to one another, i.e.
infix fun DoubleBuffer?.contentEquals(other: DoubleArray?): Boolean
Returns true if the two specified arrays are structurally equal to one another, i.e.
infix fun FloatBuffer?.contentEquals(other: FloatArray?): Boolean
Returns true if the two specified arrays are structurally equal to one another, i.e.
infix fun IntBuffer?.contentEquals(other: IntArray?): Boolean
Returns true if the two specified arrays are structurally equal to one another, i.e.
infix fun LongBuffer?.contentEquals(other: LongArray?): Boolean
Returns true if the two specified arrays are structurally equal to one another, i.e.
infix fun ShortBuffer?.contentEquals(other: ShortArray?): Boolean
Returns true if the two specified arrays are structurally equal to one another, i.e.
contentHashCode
Link copied to clipboard
fun ByteArray?.contentHashCode(): Int
Returns a hash code based on the contents of this array as if it is List.
fun CharArray?.contentHashCode(): Int
Returns a hash code based on the contents of this array as if it is List.
fun DoubleArray?.contentHashCode(): Int
Returns a hash code based on the contents of this array as if it is List.
fun FloatArray?.contentHashCode(): Int
Returns a hash code based on the contents of this array as if it is List.
fun IntArray?.contentHashCode(): Int
Returns a hash code based on the contents of this array as if it is List.
fun LongArray?.contentHashCode(): Int
Returns a hash code based on the contents of this array as if it is List.
fun ShortArray?.contentHashCode(): Int
Returns a hash code based on the contents of this array as if it is List.
contentToString
Link copied to clipboard
fun ByteBuffer?.contentToString(): String
Returns a string representation of the contents of the specified array as if it is List.
fun CharBuffer?.contentToString(): String
Returns a string representation of the contents of the specified array as if it is List.
fun DoubleBuffer?.contentToString(): String
Returns a string representation of the contents of the specified array as if it is List.
fun FloatBuffer?.contentToString(): String
Returns a string representation of the contents of the specified array as if it is List.
fun IntBuffer?.contentToString(): String
Returns a string representation of the contents of the specified array as if it is List.
fun LongBuffer?.contentToString(): String
Returns a string representation of the contents of the specified array as if it is List.
fun ShortBuffer?.contentToString(): String
Returns a string representation of the contents of the specified array as if it is List.
copyInto
Link copied to clipboard
fun ByteBuffer.copyInto(destination: ByteBuffer, destinationOffset: Int = 0, startIndex: Int = 0, endIndex: Int = lim): ByteBuffer
Copies this array or its subrange into the destination array and returns that array.
fun CharBuffer.copyInto(destination: CharBuffer, destinationOffset: Int = 0, startIndex: Int = 0, endIndex: Int = lim): CharBuffer
Copies this array or its subrange into the destination array and returns that array.
fun DoubleBuffer.copyInto(destination: DoubleBuffer, destinationOffset: Int = 0, startIndex: Int = 0, endIndex: Int = lim): DoubleBuffer
Copies this array or its subrange into the destination array and returns that array.
fun FloatBuffer.copyInto(destination: FloatBuffer, destinationOffset: Int = 0, startIndex: Int = 0, endIndex: Int = lim): FloatBuffer
Copies this array or its subrange into the destination array and returns that array.
fun IntBuffer.copyInto(destination: IntBuffer, destinationOffset: Int = 0, startIndex: Int = 0, endIndex: Int = lim): IntBuffer
Copies this array or its subrange into the destination array and returns that array.
fun LongBuffer.copyInto(destination: LongBuffer, destinationOffset: Int = 0, startIndex: Int = 0, endIndex: Int = lim): LongBuffer
Copies this array or its subrange into the destination array and returns that array.
fun ShortBuffer.copyInto(destination: ShortBuffer, destinationOffset: Int = 0, startIndex: Int = 0, endIndex: Int = lim): ShortBuffer
Copies this array or its subrange into the destination array and returns that array.
copyOf
Link copied to clipboard
fun ByteBuffer.copyOf(): ByteBuffer
Returns new array which is a copy of the original array.
fun CharBuffer.copyOf(): CharBuffer
Returns new array which is a copy of the original array.
fun DoubleBuffer.copyOf(): DoubleBuffer
Returns new array which is a copy of the original array.
fun FloatBuffer.copyOf(): FloatBuffer
Returns new array which is a copy of the original array.
fun IntBuffer.copyOf(): IntBuffer
Returns new array which is a copy of the original array.
fun LongBuffer.copyOf(): LongBuffer
Returns new array which is a copy of the original array.
fun ShortBuffer.copyOf(): ShortBuffer
Returns new array which is a copy of the original array.
fun ByteBuffer.copyOf(newSize: Int): ByteBuffer
Returns new array which is a copy of the original array, resized to the given newSize.
fun CharBuffer.copyOf(newSize: Int): CharBuffer
Returns new array which is a copy of the original array, resized to the given newSize.
fun DoubleBuffer.copyOf(newSize: Int): DoubleBuffer
Returns new array which is a copy of the original array, resized to the given newSize.
fun FloatBuffer.copyOf(newSize: Int): FloatBuffer
Returns new array which is a copy of the original array, resized to the given newSize.
fun IntBuffer.copyOf(newSize: Int): IntBuffer
Returns new array which is a copy of the original array, resized to the given newSize.
fun LongBuffer.copyOf(newSize: Int): LongBuffer
Returns new array which is a copy of the original array, resized to the given newSize.
fun ShortBuffer.copyOf(newSize: Int): ShortBuffer
Returns new array which is a copy of the original array, resized to the given newSize.
copyOfRange
Link copied to clipboard
fun ByteBuffer.copyOfRange(fromIndex: Int, toIndex: Int): ByteBuffer
Returns a new array which is a copy of the specified range of the original array.
fun CharBuffer.copyOfRange(fromIndex: Int, toIndex: Int): CharBuffer
Returns a new array which is a copy of the specified range of the original array.
fun DoubleBuffer.copyOfRange(fromIndex: Int, toIndex: Int): DoubleBuffer
Returns a new array which is a copy of the specified range of the original array.
fun FloatBuffer.copyOfRange(fromIndex: Int, toIndex: Int): FloatBuffer
Returns a new array which is a copy of the specified range of the original array.
fun IntBuffer.copyOfRange(fromIndex: Int, toIndex: Int): IntBuffer
Returns a new array which is a copy of the specified range of the original array.
fun LongBuffer.copyOfRange(fromIndex: Int, toIndex: Int): LongBuffer
Returns a new array which is a copy of the specified range of the original array.
fun ShortBuffer.copyOfRange(fromIndex: Int, toIndex: Int): ShortBuffer
Returns a new array which is a copy of the specified range of the original array.
count
Link copied to clipboard
fun ByteBuffer.count(): Int
Returns the number of elements in this buffer.
fun CharBuffer.count(): Int
Returns the number of elements in this buffer.
fun DoubleBuffer.count(): Int
Returns the number of elements in this buffer.
fun FloatBuffer.count(): Int
Returns the number of elements in this buffer.
fun IntBuffer.count(): Int
Returns the number of elements in this buffer.
fun LongBuffer.count(): Int
Returns the number of elements in this buffer.
fun ShortBuffer.count(): Int
Returns the number of elements in this buffer.
inline fun ByteBuffer.count(predicate: (Byte) -> Boolean): Int
Returns the number of elements matching the given predicate.
inline fun CharBuffer.count(predicate: (Char) -> Boolean): Int
Returns the number of elements matching the given predicate.
inline fun DoubleBuffer.count(predicate: (Double) -> Boolean): Int
Returns the number of elements matching the given predicate.
inline fun FloatBuffer.count(predicate: (Float) -> Boolean): Int
Returns the number of elements matching the given predicate.
inline fun IntBuffer.count(predicate: (Int) -> Boolean): Int
Returns the number of elements matching the given predicate.
inline fun LongBuffer.count(predicate: (Long) -> Boolean): Int
Returns the number of elements matching the given predicate.
inline fun ShortBuffer.count(predicate: (Short) -> Boolean): Int
Returns the number of elements matching the given predicate.
distinct
Link copied to clipboard
fun ByteBuffer.distinct(): List<Byte>
Returns a list containing only distinct elements from the given array.
fun CharBuffer.distinct(): List<Char>
Returns a list containing only distinct elements from the given array.
fun DoubleBuffer.distinct(): List<Double>
Returns a list containing only distinct elements from the given array.
fun FloatBuffer.distinct(): List<Float>
Returns a list containing only distinct elements from the given array.
fun IntBuffer.distinct(): List<Int>
Returns a list containing only distinct elements from the given array.
fun LongBuffer.distinct(): List<Long>
Returns a list containing only distinct elements from the given array.
fun ShortBuffer.distinct(): List<Short>
Returns a list containing only distinct elements from the given array.
distinctBy
Link copied to clipboard
inline fun <K> ByteBuffer.distinctBy(selector: (Byte) -> K): List<Byte>
Returns a list containing only elements from the given array having distinct keys returned by the given selector function.
inline fun <K> CharBuffer.distinctBy(selector: (Char) -> K): List<Char>
Returns a list containing only elements from the given array having distinct keys returned by the given selector function.
inline fun <K> DoubleBuffer.distinctBy(selector: (Double) -> K): List<Double>
Returns a list containing only elements from the given array having distinct keys returned by the given selector function.
inline fun <K> FloatBuffer.distinctBy(selector: (Float) -> K): List<Float>
Returns a list containing only elements from the given array having distinct keys returned by the given selector function.
inline fun <K> IntBuffer.distinctBy(selector: (Int) -> K): List<Int>
Returns a list containing only elements from the given array having distinct keys returned by the given selector function.
inline fun <K> LongBuffer.distinctBy(selector: (Long) -> K): List<Long>
Returns a list containing only elements from the given array having distinct keys returned by the given selector function.
inline fun <K> ShortBuffer.distinctBy(selector: (Short) -> K): List<Short>
Returns a list containing only elements from the given array having distinct keys returned by the given selector function.
drop
Link copied to clipboard
fun ByteBuffer.drop(n: Int): List<Byte>
Returns a list containing all elements except first n elements.
fun CharBuffer.drop(n: Int): List<Char>
Returns a list containing all elements except first n elements.
fun DoubleBuffer.drop(n: Int): List<Double>
Returns a list containing all elements except first n elements.
fun FloatBuffer.drop(n: Int): List<Float>
Returns a list containing all elements except first n elements.
fun IntBuffer.drop(n: Int): List<Int>
Returns a list containing all elements except first n elements.
fun LongBuffer.drop(n: Int): List<Long>
Returns a list containing all elements except first n elements.
fun ShortBuffer.drop(n: Int): List<Short>
Returns a list containing all elements except first n elements.
dropLast
Link copied to clipboard
fun ByteBuffer.dropLast(n: Int): List<Byte>
Returns a list containing all elements except last n elements.
fun CharBuffer.dropLast(n: Int): List<Char>
Returns a list containing all elements except last n elements.
fun DoubleBuffer.dropLast(n: Int): List<Double>
Returns a list containing all elements except last n elements.
fun FloatBuffer.dropLast(n: Int): List<Float>
Returns a list containing all elements except last n elements.
fun IntBuffer.dropLast(n: Int): List<Int>
Returns a list containing all elements except last n elements.
fun LongBuffer.dropLast(n: Int): List<Long>
Returns a list containing all elements except last n elements.
fun ShortBuffer.dropLast(n: Int): List<Short>
Returns a list containing all elements except last n elements.
dropLastWhile
Link copied to clipboard
inline fun ByteBuffer.dropLastWhile(predicate: (Byte) -> Boolean): List<Byte>
Returns a list containing all elements except last elements that satisfy the given predicate.
inline fun DoubleBuffer.dropLastWhile(predicate: (Double) -> Boolean): List<Double>
Returns a list containing all elements except last elements that satisfy the given predicate.
inline fun FloatBuffer.dropLastWhile(predicate: (Float) -> Boolean): List<Float>
Returns a list containing all elements except last elements that satisfy the given predicate.
inline fun IntBuffer.dropLastWhile(predicate: (Int) -> Boolean): List<Int>
Returns a list containing all elements except last elements that satisfy the given predicate.
inline fun LongBuffer.dropLastWhile(predicate: (Long) -> Boolean): List<Long>
Returns a list containing all elements except last elements that satisfy the given predicate.
inline fun ShortBuffer.dropLastWhile(predicate: (Short) -> Boolean): List<Short>
Returns a list containing all elements except last elements that satisfy the given predicate.
dropLastWhile_
Link copied to clipboard
inline fun CharBuffer.dropLastWhile_(predicate: (Char) -> Boolean): List<Char>
Returns a list containing all elements except last elements that satisfy the given predicate.
dropWhile
Link copied to clipboard
inline fun ByteBuffer.dropWhile(predicate: (Byte) -> Boolean): List<Byte>
Returns a list containing all elements except first elements that satisfy the given predicate.
inline fun DoubleBuffer.dropWhile(predicate: (Double) -> Boolean): List<Double>
Returns a list containing all elements except first elements that satisfy the given predicate.
inline fun FloatBuffer.dropWhile(predicate: (Float) -> Boolean): List<Float>
Returns a list containing all elements except first elements that satisfy the given predicate.
inline fun IntBuffer.dropWhile(predicate: (Int) -> Boolean): List<Int>
Returns a list containing all elements except first elements that satisfy the given predicate.
inline fun LongBuffer.dropWhile(predicate: (Long) -> Boolean): List<Long>
Returns a list containing all elements except first elements that satisfy the given predicate.
inline fun ShortBuffer.dropWhile(predicate: (Short) -> Boolean): List<Short>
Returns a list containing all elements except first elements that satisfy the given predicate.
dropWhile_
Link copied to clipboard
inline fun CharBuffer.dropWhile_(predicate: (Char) -> Boolean): List<Char>
Returns a list containing all elements except first elements that satisfy the given predicate.
elementAt
Link copied to clipboard
fun ByteBuffer.elementAt(index: Int): Byte
Returns an element at the given index or throws an IndexOutOfBoundsException if the index is out of bounds of this buffer.
fun CharBuffer.elementAt(index: Int): Char
Returns an element at the given index or throws an IndexOutOfBoundsException if the index is out of bounds of this buffer.
fun DoubleBuffer.elementAt(index: Int): Double
Returns an element at the given index or throws an IndexOutOfBoundsException if the index is out of bounds of this buffer.
fun FloatBuffer.elementAt(index: Int): Float
Returns an element at the given index or throws an IndexOutOfBoundsException if the index is out of bounds of this buffer.
fun IntBuffer.elementAt(index: Int): Int
Returns an element at the given index or throws an IndexOutOfBoundsException if the index is out of bounds of this buffer.
fun LongBuffer.elementAt(index: Int): Long
Returns an element at the given index or throws an IndexOutOfBoundsException if the index is out of bounds of this buffer.
fun ShortBuffer.elementAt(index: Int): Short
Returns an element at the given index or throws an IndexOutOfBoundsException if the index is out of bounds of this buffer.
elementAtOrElse
Link copied to clipboard
inline fun ByteBuffer.elementAtOrElse(index: Int, defaultValue: (Int) -> Byte): Byte
Returns an element at the given index or the result of calling the defaultValue function if the index is out of bounds of this buffer.
inline fun CharBuffer.elementAtOrElse(index: Int, defaultValue: (Int) -> Char): Char
Returns an element at the given index or the result of calling the defaultValue function if the index is out of bounds of this buffer.
inline fun DoubleBuffer.elementAtOrElse(index: Int, defaultValue: (Int) -> Double): Double
Returns an element at the given index or the result of calling the defaultValue function if the index is out of bounds of this buffer.
inline fun FloatBuffer.elementAtOrElse(index: Int, defaultValue: (Int) -> Float): Float
Returns an element at the given index or the result of calling the defaultValue function if the index is out of bounds of this buffer.
inline fun IntBuffer.elementAtOrElse(index: Int, defaultValue: (Int) -> Int): Int
Returns an element at the given index or the result of calling the defaultValue function if the index is out of bounds of this buffer.
inline fun LongBuffer.elementAtOrElse(index: Int, defaultValue: (Int) -> Long): Long
Returns an element at the given index or the result of calling the defaultValue function if the index is out of bounds of this buffer.
inline fun ShortBuffer.elementAtOrElse(index: Int, defaultValue: (Int) -> Short): Short
Returns an element at the given index or the result of calling the defaultValue function if the index is out of bounds of this buffer.
elementAtOrNull
Link copied to clipboard
fun ByteBuffer.elementAtOrNull(index: Int): Byte?
Returns an element at the given index or null if the index is out of bounds of this buffer.
fun CharBuffer.elementAtOrNull(index: Int): Char?
Returns an element at the given index or null if the index is out of bounds of this buffer.
fun DoubleBuffer.elementAtOrNull(index: Int): Double?
Returns an element at the given index or null if the index is out of bounds of this buffer.
fun FloatBuffer.elementAtOrNull(index: Int): Float?
Returns an element at the given index or null if the index is out of bounds of this buffer.
fun IntBuffer.elementAtOrNull(index: Int): Int?
Returns an element at the given index or null if the index is out of bounds of this buffer.
fun LongBuffer.elementAtOrNull(index: Int): Long?
Returns an element at the given index or null if the index is out of bounds of this buffer.
fun ShortBuffer.elementAtOrNull(index: Int): Short?
Returns an element at the given index or null if the index is out of bounds of this buffer.
fill
Link copied to clipboard
fun ByteBuffer.fill(element: Byte, fromIndex: Int = 0, toIndex: Int = lim)
Fills original buffer with the provided value.
fun CharBuffer.fill(element: Char, fromIndex: Int = 0, toIndex: Int = lim)
Fills original buffer with the provided value.
fun DoubleBuffer.fill(element: Double, fromIndex: Int = 0, toIndex: Int = lim)
Fills original buffer with the provided value.
fun FloatBuffer.fill(element: Float, fromIndex: Int = 0, toIndex: Int = lim)
Fills original buffer with the provided value.
fun IntBuffer.fill(element: Int, fromIndex: Int = 0, toIndex: Int = lim)
Fills original buffer with the provided value.
fun LongBuffer.fill(element: Long, fromIndex: Int = 0, toIndex: Int = lim)
Fills original buffer with the provided value.
fun ShortBuffer.fill(element: Short, fromIndex: Int = 0, toIndex: Int = lim)
Fills original buffer with the provided value.
filter
Link copied to clipboard
inline fun ByteBuffer.filter(predicate: (Byte) -> Boolean): List<Byte>
Returns a list containing only elements matching the given predicate.
inline fun CharBuffer.filter(predicate: (Char) -> Boolean): List<Char>
Returns a list containing only elements matching the given predicate.
inline fun DoubleBuffer.filter(predicate: (Double) -> Boolean): List<Double>
Returns a list containing only elements matching the given predicate.
inline fun FloatBuffer.filter(predicate: (Float) -> Boolean): List<Float>
Returns a list containing only elements matching the given predicate.
inline fun IntBuffer.filter(predicate: (Int) -> Boolean): List<Int>
Returns a list containing only elements matching the given predicate.
inline fun LongBuffer.filter(predicate: (Long) -> Boolean): List<Long>
Returns a list containing only elements matching the given predicate.
inline fun ShortBuffer.filter(predicate: (Short) -> Boolean): List<Short>
Returns a list containing only elements matching the given predicate.
filterIndexed
Link copied to clipboard
inline fun ByteBuffer.filterIndexed(predicate: (index: Int, Byte) -> Boolean): List<Byte>
Returns a list containing only elements matching the given predicate.
inline fun CharBuffer.filterIndexed(predicate: (index: Int, Char) -> Boolean): List<Char>
Returns a list containing only elements matching the given predicate.
inline fun DoubleBuffer.filterIndexed(predicate: (index: Int, Double) -> Boolean): List<Double>
Returns a list containing only elements matching the given predicate.
inline fun FloatBuffer.filterIndexed(predicate: (index: Int, Float) -> Boolean): List<Float>
Returns a list containing only elements matching the given predicate.
inline fun IntBuffer.filterIndexed(predicate: (index: Int, Int) -> Boolean): List<Int>
Returns a list containing only elements matching the given predicate.
inline fun LongBuffer.filterIndexed(predicate: (index: Int, Long) -> Boolean): List<Long>
Returns a list containing only elements matching the given predicate.
inline fun ShortBuffer.filterIndexed(predicate: (index: Int, Short) -> Boolean): List<Short>
Returns a list containing only elements matching the given predicate.
filterIndexedTo
Link copied to clipboard
inline fun <C : MutableCollection<in Byte>> ByteBuffer.filterIndexedTo(destination: C, predicate: (index: Int, Byte) -> Boolean): C
Appends all elements matching the given predicate to the given destination.
inline fun <C : MutableCollection<in Char>> CharBuffer.filterIndexedTo(destination: C, predicate: (index: Int, Char) -> Boolean): C
Appends all elements matching the given predicate to the given destination.
inline fun <C : MutableCollection<in Double>> DoubleBuffer.filterIndexedTo(destination: C, predicate: (index: Int, Double) -> Boolean): C
Appends all elements matching the given predicate to the given destination.
inline fun <C : MutableCollection<in Float>> FloatBuffer.filterIndexedTo(destination: C, predicate: (index: Int, Float) -> Boolean): C
Appends all elements matching the given predicate to the given destination.
inline fun <C : MutableCollection<in Int>> IntBuffer.filterIndexedTo(destination: C, predicate: (index: Int, Int) -> Boolean): C
Appends all elements matching the given predicate to the given destination.
inline fun <C : MutableCollection<in Long>> LongBuffer.filterIndexedTo(destination: C, predicate: (index: Int, Long) -> Boolean): C
Appends all elements matching the given predicate to the given destination.
inline fun <C : MutableCollection<in Short>> ShortBuffer.filterIndexedTo(destination: C, predicate: (index: Int, Short) -> Boolean): C
Appends all elements matching the given predicate to the given destination.
filterNot
Link copied to clipboard
inline fun ByteBuffer.filterNot(predicate: (Byte) -> Boolean): List<Byte>
Returns a list containing all elements not matching the given predicate.
inline fun CharBuffer.filterNot(predicate: (Char) -> Boolean): List<Char>
Returns a list containing all elements not matching the given predicate.
inline fun DoubleBuffer.filterNot(predicate: (Double) -> Boolean): List<Double>
Returns a list containing all elements not matching the given predicate.
inline fun FloatBuffer.filterNot(predicate: (Float) -> Boolean): List<Float>
Returns a list containing all elements not matching the given predicate.
inline fun IntBuffer.filterNot(predicate: (Int) -> Boolean): List<Int>
Returns a list containing all elements not matching the given predicate.
inline fun LongBuffer.filterNot(predicate: (Long) -> Boolean): List<Long>
Returns a list containing all elements not matching the given predicate.
inline fun ShortBuffer.filterNot(predicate: (Short) -> Boolean): List<Short>
Returns a list containing all elements not matching the given predicate.
filterNotTo
Link copied to clipboard
inline fun <C : MutableCollection<in Byte>> ByteBuffer.filterNotTo(destination: C, predicate: (Byte) -> Boolean): C
Appends all elements not matching the given predicate to the given destination.
inline fun <C : MutableCollection<in Char>> CharBuffer.filterNotTo(destination: C, predicate: (Char) -> Boolean): C
Appends all elements not matching the given predicate to the given destination.
inline fun <C : MutableCollection<in Double>> DoubleBuffer.filterNotTo(destination: C, predicate: (Double) -> Boolean): C
Appends all elements not matching the given predicate to the given destination.
inline fun <C : MutableCollection<in Float>> FloatBuffer.filterNotTo(destination: C, predicate: (Float) -> Boolean): C
Appends all elements not matching the given predicate to the given destination.
inline fun <C : MutableCollection<in Int>> IntBuffer.filterNotTo(destination: C, predicate: (Int) -> Boolean): C
Appends all elements not matching the given predicate to the given destination.
inline fun <C : MutableCollection<in Long>> LongBuffer.filterNotTo(destination: C, predicate: (Long) -> Boolean): C
Appends all elements not matching the given predicate to the given destination.
inline fun <C : MutableCollection<in Short>> ShortBuffer.filterNotTo(destination: C, predicate: (Short) -> Boolean): C
Appends all elements not matching the given predicate to the given destination.
filterNotZero
Link copied to clipboard
fun ByteBuffer.filterNotZero(): List<Byte>
Returns a list containing all elements that are not zero (aka "null" for GL and VK)
fun CharBuffer.filterNotZero(): List<Char>
Returns a list containing all elements that are not zero (aka "null" for GL and VK)
fun DoubleBuffer.filterNotZero(): List<Double>
Returns a list containing all elements that are not zero (aka "null" for GL and VK)
fun FloatBuffer.filterNotZero(): List<Float>
Returns a list containing all elements that are not zero (aka "null" for GL and VK)
fun IntBuffer.filterNotZero(): List<Int>
Returns a list containing all elements that are not zero (aka "null" for GL and VK)
fun LongBuffer.filterNotZero(): List<Long>
Returns a list containing all elements that are not zero (aka "null" for GL and VK)
fun ShortBuffer.filterNotZero(): List<Short>
Returns a list containing all elements that are not zero (aka "null" for GL and VK)
filterNotZeroTo
Link copied to clipboard
fun <C : MutableCollection<Byte>> ByteBuffer.filterNotZeroTo(destination: C): C
Appends all elements that are not null to the given destination.
fun <C : MutableCollection<Char>> CharBuffer.filterNotZeroTo(destination: C): C
Appends all elements that are not null to the given destination.
fun <C : MutableCollection<Double>> DoubleBuffer.filterNotZeroTo(destination: C): C
Appends all elements that are not null to the given destination.
fun <C : MutableCollection<Float>> FloatBuffer.filterNotZeroTo(destination: C): C
Appends all elements that are not null to the given destination.
fun <C : MutableCollection<Int>> IntBuffer.filterNotZeroTo(destination: C): C
Appends all elements that are not null to the given destination.
fun <C : MutableCollection<Long>> LongBuffer.filterNotZeroTo(destination: C): C
Appends all elements that are not null to the given destination.
fun <C : MutableCollection<Short>> ShortBuffer.filterNotZeroTo(destination: C): C
Appends all elements that are not null to the given destination.
filterTo
Link copied to clipboard
inline fun <C : MutableCollection<in Byte>> ByteBuffer.filterTo(destination: C, predicate: (Byte) -> Boolean): C
Appends all elements matching the given predicate to the given destination.
inline fun <C : MutableCollection<in Char>> CharBuffer.filterTo(destination: C, predicate: (Char) -> Boolean): C
Appends all elements matching the given predicate to the given destination.
inline fun <C : MutableCollection<in Double>> DoubleBuffer.filterTo(destination: C, predicate: (Double) -> Boolean): C
Appends all elements matching the given predicate to the given destination.
inline fun <C : MutableCollection<in Float>> FloatBuffer.filterTo(destination: C, predicate: (Float) -> Boolean): C
Appends all elements matching the given predicate to the given destination.
inline fun <C : MutableCollection<in Int>> IntBuffer.filterTo(destination: C, predicate: (Int) -> Boolean): C
Appends all elements matching the given predicate to the given destination.
inline fun <C : MutableCollection<in Long>> LongBuffer.filterTo(destination: C, predicate: (Long) -> Boolean): C
Appends all elements matching the given predicate to the given destination.
inline fun <C : MutableCollection<in Short>> ShortBuffer.filterTo(destination: C, predicate: (Short) -> Boolean): C
Appends all elements matching the given predicate to the given destination.
find
Link copied to clipboard
inline fun ByteBuffer.find(predicate: (Byte) -> Boolean): Byte?
Returns the first element matching the given predicate, or null if no such element was found.
inline fun CharBuffer.find(predicate: (Char) -> Boolean): Char?
Returns the first element matching the given predicate, or null if no such element was found.
inline fun DoubleBuffer.find(predicate: (Double) -> Boolean): Double?
Returns the first element matching the given predicate, or null if no such element was found.
inline fun FloatBuffer.find(predicate: (Float) -> Boolean): Float?
Returns the first element matching the given predicate, or null if no such element was found.
inline fun IntBuffer.find(predicate: (Int) -> Boolean): Int?
Returns the first element matching the given predicate, or null if no such element was found.
inline fun LongBuffer.find(predicate: (Long) -> Boolean): Long?
Returns the first element matching the given predicate, or null if no such element was found.
inline fun ShortBuffer.find(predicate: (Short) -> Boolean): Short?
Returns the first element matching the given predicate, or null if no such element was found.
findLast
Link copied to clipboard
inline fun ByteBuffer.findLast(predicate: (Byte) -> Boolean): Byte?
Returns the last element matching the given predicate, or null if no such element was found.
inline fun CharBuffer.findLast(predicate: (Char) -> Boolean): Char?
Returns the last element matching the given predicate, or null if no such element was found.
inline fun DoubleBuffer.findLast(predicate: (Double) -> Boolean): Double?
Returns the last element matching the given predicate, or null if no such element was found.
inline fun FloatBuffer.findLast(predicate: (Float) -> Boolean): Float?
Returns the last element matching the given predicate, or null if no such element was found.
inline fun IntBuffer.findLast(predicate: (Int) -> Boolean): Int?
Returns the last element matching the given predicate, or null if no such element was found.
inline fun LongBuffer.findLast(predicate: (Long) -> Boolean): Long?
Returns the last element matching the given predicate, or null if no such element was found.
inline fun ShortBuffer.findLast(predicate: (Short) -> Boolean): Short?
Returns the last element matching the given predicate, or null if no such element was found.
first
Link copied to clipboard
fun ByteBuffer.first(): Byte
Returns first element.
fun CharBuffer.first(): Char
Returns first element.
fun DoubleBuffer.first(): Double
Returns first element.
fun FloatBuffer.first(): Float
Returns first element.
fun IntBuffer.first(): Int
Returns first element.
fun LongBuffer.first(): Long
Returns first element.
fun ShortBuffer.first(): Short
Returns first element.
inline fun ByteBuffer.first(predicate: (Byte) -> Boolean): Byte
Returns the first element matching the given predicate.
inline fun CharBuffer.first(predicate: (Char) -> Boolean): Char
Returns the first element matching the given predicate.
inline fun DoubleBuffer.first(predicate: (Double) -> Boolean): Double
Returns the first element matching the given predicate.
inline fun FloatBuffer.first(predicate: (Float) -> Boolean): Float
Returns the first element matching the given predicate.
inline fun IntBuffer.first(predicate: (Int) -> Boolean): Int
Returns the first element matching the given predicate.
inline fun LongBuffer.first(predicate: (Long) -> Boolean): Long
Returns the first element matching the given predicate.
inline fun ShortBuffer.first(predicate: (Short) -> Boolean): Short
Returns the first element matching the given predicate.
firstOrNull
Link copied to clipboard
fun ByteBuffer.firstOrNull(): Byte?
Returns the first element, or null if the buffer is empty.
fun CharBuffer.firstOrNull(): Char?
Returns the first element, or null if the buffer is empty.
fun DoubleBuffer.firstOrNull(): Double?
Returns the first element, or null if the buffer is empty.
fun FloatBuffer.firstOrNull(): Float?
Returns the first element, or null if the buffer is empty.
fun IntBuffer.firstOrNull(): Int?
Returns the first element, or null if the buffer is empty.
fun LongBuffer.firstOrNull(): Long?
Returns the first element, or null if the buffer is empty.
fun ShortBuffer.firstOrNull(): Short?
Returns the first element, or null if the buffer is empty.
inline fun ByteBuffer.firstOrNull(predicate: (Byte) -> Boolean): Byte?
Returns the first element matching the given predicate, or null if element was not found.
inline fun CharBuffer.firstOrNull(predicate: (Char) -> Boolean): Char?
Returns the first element matching the given predicate, or null if element was not found.
inline fun DoubleBuffer.firstOrNull(predicate: (Double) -> Boolean): Double?
Returns the first element matching the given predicate, or null if element was not found.
inline fun FloatBuffer.firstOrNull(predicate: (Float) -> Boolean): Float?
Returns the first element matching the given predicate, or null if element was not found.
inline fun IntBuffer.firstOrNull(predicate: (Int) -> Boolean): Int?
Returns the first element matching the given predicate, or null if element was not found.
inline fun LongBuffer.firstOrNull(predicate: (Long) -> Boolean): Long?
Returns the first element matching the given predicate, or null if element was not found.
inline fun ShortBuffer.firstOrNull(predicate: (Short) -> Boolean): Short?
Returns the first element matching the given predicate, or null if element was not found.
flatMap
Link copied to clipboard
inline fun <R> ByteBuffer.flatMap(transform: (Byte) -> Iterable<R>): List<R>
Returns a single list of all elements yielded from results of transform function being invoked on each element of original array.
inline fun <R> CharBuffer.flatMap(transform: (Char) -> Iterable<R>): List<R>
Returns a single list of all elements yielded from results of transform function being invoked on each element of original array.
inline fun <R> DoubleBuffer.flatMap(transform: (Double) -> Iterable<R>): List<R>
Returns a single list of all elements yielded from results of transform function being invoked on each element of original array.
inline fun <R> FloatBuffer.flatMap(transform: (Float) -> Iterable<R>): List<R>
Returns a single list of all elements yielded from results of transform function being invoked on each element of original array.
inline fun <R> IntBuffer.flatMap(transform: (Int) -> Iterable<R>): List<R>
Returns a single list of all elements yielded from results of transform function being invoked on each element of original array.
inline fun <R> LongBuffer.flatMap(transform: (Long) -> Iterable<R>): List<R>
Returns a single list of all elements yielded from results of transform function being invoked on each element of original array.
inline fun <R> ShortBuffer.flatMap(transform: (Short) -> Iterable<R>): List<R>
Returns a single list of all elements yielded from results of transform function being invoked on each element of original array.
flatMapIndexed
Link copied to clipboard
@JvmName(name = "flatMapIndexedIterable")
inline fun <R> ByteBuffer.flatMapIndexed(transform: (index: Int, Byte) -> Iterable<R>): List<R>
Returns a single list of all elements yielded from results of transform function being invoked on each element and its index in the original array.
@JvmName(name = "flatMapIndexedIterable")
inline fun <R> CharBuffer.flatMapIndexed(transform: (index: Int, Char) -> Iterable<R>): List<R>
Returns a single list of all elements yielded from results of transform function being invoked on each element and its index in the original array.
@JvmName(name = "flatMapIndexedIterable")
inline fun <R> DoubleBuffer.flatMapIndexed(transform: (index: Int, Double) -> Iterable<R>): List<R>
Returns a single list of all elements yielded from results of transform function being invoked on each element and its index in the original array.
@JvmName(name = "flatMapIndexedIterable")
inline fun <R> FloatBuffer.flatMapIndexed(transform: (index: Int, Float) -> Iterable<R>): List<R>
Returns a single list of all elements yielded from results of transform function being invoked on each element and its index in the original array.
@JvmName(name = "flatMapIndexedIterable")
inline fun <R> IntBuffer.flatMapIndexed(transform: (index: Int, Int) -> Iterable<R>): List<R>
Returns a single list of all elements yielded from results of transform function being invoked on each element and its index in the original array.
@JvmName(name = "flatMapIndexedIterable")
inline fun <R> LongBuffer.flatMapIndexed(transform: (index: Int, Long) -> Iterable<R>): List<R>
Returns a single list of all elements yielded from results of transform function being invoked on each element and its index in the original array.
@JvmName(name = "flatMapIndexedIterable")
inline fun <R> ShortBuffer.flatMapIndexed(transform: (index: Int, Short) -> Iterable<R>): List<R>
Returns a single list of all elements yielded from results of transform function being invoked on each element and its index in the original array.
flatMapIndexedTo
Link copied to clipboard
@JvmName(name = "flatMapIndexedIterableTo")
inline fun <R, C : MutableCollection<in R>> ByteBuffer.flatMapIndexedTo(destination: C, transform: (index: Int, Byte) -> Iterable<R>): C
Appends all elements yielded from results of transform function being invoked on each element and its index in the original array, to the given destination.
@JvmName(name = "flatMapIndexedIterableTo")
inline fun <R, C : MutableCollection<in R>> CharBuffer.flatMapIndexedTo(destination: C, transform: (index: Int, Char) -> Iterable<R>): C
Appends all elements yielded from results of transform function being invoked on each element and its index in the original array, to the given destination.
@JvmName(name = "flatMapIndexedIterableTo")
inline fun <R, C : MutableCollection<in R>> DoubleBuffer.flatMapIndexedTo(destination: C, transform: (index: Int, Double) -> Iterable<R>): C
Appends all elements yielded from results of transform function being invoked on each element and its index in the original array, to the given destination.
@JvmName(name = "flatMapIndexedIterableTo")
inline fun <R, C : MutableCollection<in R>> FloatBuffer.flatMapIndexedTo(destination: C, transform: (index: Int, Float) -> Iterable<R>): C
Appends all elements yielded from results of transform function being invoked on each element and its index in the original array, to the given destination.
@JvmName(name = "flatMapIndexedIterableTo")
inline fun <R, C : MutableCollection<in R>> IntBuffer.flatMapIndexedTo(destination: C, transform: (index: Int, Int) -> Iterable<R>): C
Appends all elements yielded from results of transform function being invoked on each element and its index in the original array, to the given destination.
@JvmName(name = "flatMapIndexedIterableTo")
inline fun <R, C : MutableCollection<in R>> LongBuffer.flatMapIndexedTo(destination: C, transform: (index: Int, Long) -> Iterable<R>): C
Appends all elements yielded from results of transform function being invoked on each element and its index in the original array, to the given destination.
@JvmName(name = "flatMapIndexedIterableTo")
inline fun <R, C : MutableCollection<in R>> ShortBuffer.flatMapIndexedTo(destination: C, transform: (index: Int, Short) -> Iterable<R>): C
Appends all elements yielded from results of transform function being invoked on each element and its index in the original array, to the given destination.
flatMapTo
Link copied to clipboard
inline fun <R, C : MutableCollection<in R>> ByteBuffer.flatMapTo(destination: C, transform: (Byte) -> Iterable<R>): C
Appends all elements yielded from results of transform function being invoked on each element of original array, to the given destination.
inline fun <R, C : MutableCollection<in R>> CharBuffer.flatMapTo(destination: C, transform: (Char) -> Iterable<R>): C
Appends all elements yielded from results of transform function being invoked on each element of original array, to the given destination.
inline fun <R, C : MutableCollection<in R>> DoubleBuffer.flatMapTo(destination: C, transform: (Double) -> Iterable<R>): C
Appends all elements yielded from results of transform function being invoked on each element of original array, to the given destination.
inline fun <R, C : MutableCollection<in R>> FloatBuffer.flatMapTo(destination: C, transform: (Float) -> Iterable<R>): C
Appends all elements yielded from results of transform function being invoked on each element of original array, to the given destination.
inline fun <R, C : MutableCollection<in R>> IntBuffer.flatMapTo(destination: C, transform: (Int) -> Iterable<R>): C
Appends all elements yielded from results of transform function being invoked on each element of original array, to the given destination.
inline fun <R, C : MutableCollection<in R>> LongBuffer.flatMapTo(destination: C, transform: (Long) -> Iterable<R>): C
Appends all elements yielded from results of transform function being invoked on each element of original array, to the given destination.
inline fun <R, C : MutableCollection<in R>> ShortBuffer.flatMapTo(destination: C, transform: (Short) -> Iterable<R>): C
Appends all elements yielded from results of transform function being invoked on each element of original array, to the given destination.
fold
Link copied to clipboard
inline fun <R> ByteBuffer.fold(initial: R, operation: (R, Byte) -> R): R
Accumulates value starting with initial value and applying operation from left to right to current accumulator value and each element.
inline fun <R> CharBuffer.fold(initial: R, operation: (R, Char) -> R): R
Accumulates value starting with initial value and applying operation from left to right to current accumulator value and each element.
inline fun <R> DoubleBuffer.fold(initial: R, operation: (R, Double) -> R): R
Accumulates value starting with initial value and applying operation from left to right to current accumulator value and each element.
inline fun <R> FloatBuffer.fold(initial: R, operation: (R, Float) -> R): R
Accumulates value starting with initial value and applying operation from left to right to current accumulator value and each element.
inline fun <R> IntBuffer.fold(initial: R, operation: (R, Int) -> R): R
Accumulates value starting with initial value and applying operation from left to right to current accumulator value and each element.
inline fun <R> LongBuffer.fold(initial: R, operation: (R, Long) -> R): R
Accumulates value starting with initial value and applying operation from left to right to current accumulator value and each element.
inline fun <R> ShortBuffer.fold(initial: R, operation: (R, Short) -> R): R
Accumulates value starting with initial value and applying operation from left to right to current accumulator value and each element.
foldIndexed
Link copied to clipboard
inline fun <R> ByteBuffer.foldIndexed(initial: R, operation: (index: Int, R, Byte) -> R): R
Accumulates value starting with initial value and applying operation from left to right to current accumulator value and each element with its index in the original array.
inline fun <R> CharBuffer.foldIndexed(initial: R, operation: (index: Int, R, Char) -> R): R
Accumulates value starting with initial value and applying operation from left to right to current accumulator value and each element with its index in the original array.
inline fun <R> DoubleBuffer.foldIndexed(initial: R, operation: (index: Int, R, Double) -> R): R
Accumulates value starting with initial value and applying operation from left to right to current accumulator value and each element with its index in the original array.
inline fun <R> FloatBuffer.foldIndexed(initial: R, operation: (index: Int, R, Float) -> R): R
Accumulates value starting with initial value and applying operation from left to right to current accumulator value and each element with its index in the original array.
inline fun <R> IntBuffer.foldIndexed(initial: R, operation: (index: Int, R, Int) -> R): R
Accumulates value starting with initial value and applying operation from left to right to current accumulator value and each element with its index in the original array.
inline fun <R> LongBuffer.foldIndexed(initial: R, operation: (index: Int, R, Long) -> R): R
Accumulates value starting with initial value and applying operation from left to right to current accumulator value and each element with its index in the original array.
inline fun <R> ShortBuffer.foldIndexed(initial: R, operation: (index: Int, R, Short) -> R): R
Accumulates value starting with initial value and applying operation from left to right to current accumulator value and each element with its index in the original array.
foldRight
Link copied to clipboard
inline fun <R> ByteBuffer.foldRight(initial: R, operation: (Byte, R) -> R): R
Accumulates value starting with initial value and applying operation from right to left to each element and current accumulator value.
inline fun <R> CharBuffer.foldRight(initial: R, operation: (Char, R) -> R): R
Accumulates value starting with initial value and applying operation from right to left to each element and current accumulator value.
inline fun <R> DoubleBuffer.foldRight(initial: R, operation: (Double, R) -> R): R
Accumulates value starting with initial value and applying operation from right to left to each element and current accumulator value.
inline fun <R> FloatBuffer.foldRight(initial: R, operation: (Float, R) -> R): R
Accumulates value starting with initial value and applying operation from right to left to each element and current accumulator value.
inline fun <R> IntBuffer.foldRight(initial: R, operation: (Int, R) -> R): R
Accumulates value starting with initial value and applying operation from right to left to each element and current accumulator value.
inline fun <R> LongBuffer.foldRight(initial: R, operation: (Long, R) -> R): R
Accumulates value starting with initial value and applying operation from right to left to each element and current accumulator value.
inline fun <R> ShortBuffer.foldRight(initial: R, operation: (Short, R) -> R): R
Accumulates value starting with initial value and applying operation from right to left to each element and current accumulator value.
foldRightIndexed
Link copied to clipboard
inline fun <R> ByteBuffer.foldRightIndexed(initial: R, operation: (index: Int, Byte, R) -> R): R
Accumulates value starting with initial value and applying operation from right to left to each element with its index in the original array and current accumulator value.
inline fun <R> CharBuffer.foldRightIndexed(initial: R, operation: (index: Int, Char, R) -> R): R
Accumulates value starting with initial value and applying operation from right to left to each element with its index in the original array and current accumulator value.
inline fun <R> DoubleBuffer.foldRightIndexed(initial: R, operation: (index: Int, Double, R) -> R): R
Accumulates value starting with initial value and applying operation from right to left to each element with its index in the original array and current accumulator value.
inline fun <R> FloatBuffer.foldRightIndexed(initial: R, operation: (index: Int, Float, R) -> R): R
Accumulates value starting with initial value and applying operation from right to left to each element with its index in the original array and current accumulator value.
inline fun <R> IntBuffer.foldRightIndexed(initial: R, operation: (index: Int, Int, R) -> R): R
Accumulates value starting with initial value and applying operation from right to left to each element with its index in the original array and current accumulator value.
inline fun <R> LongBuffer.foldRightIndexed(initial: R, operation: (index: Int, Long, R) -> R): R
Accumulates value starting with initial value and applying operation from right to left to each element with its index in the original array and current accumulator value.
inline fun <R> ShortBuffer.foldRightIndexed(initial: R, operation: (index: Int, Short, R) -> R): R
Accumulates value starting with initial value and applying operation from right to left to each element with its index in the original array and current accumulator value.
forEach
Link copied to clipboard
inline fun ByteBuffer.forEach(action: (Byte) -> Unit)
Performs the given action on each element.
inline fun CharBuffer.forEach(action: (Char) -> Unit)
Performs the given action on each element.
inline fun DoubleBuffer.forEach(action: (Double) -> Unit)
Performs the given action on each element.
inline fun FloatBuffer.forEach(action: (Float) -> Unit)
Performs the given action on each element.
inline fun IntBuffer.forEach(action: (Int) -> Unit)
Performs the given action on each element.
inline fun LongBuffer.forEach(action: (Long) -> Unit)
Performs the given action on each element.
inline fun ShortBuffer.forEach(action: (Short) -> Unit)
Performs the given action on each element.
forEachIndexed
Link copied to clipboard
inline fun ByteBuffer.forEachIndexed(action: (index: Int, Byte) -> Unit)
Performs the given action on each element, providing sequential index with the element.
inline fun CharBuffer.forEachIndexed(action: (index: Int, Char) -> Unit)
Performs the given action on each element, providing sequential index with the element.
inline fun DoubleBuffer.forEachIndexed(action: (index: Int, Double) -> Unit)
Performs the given action on each element, providing sequential index with the element.
inline fun FloatBuffer.forEachIndexed(action: (index: Int, Float) -> Unit)
Performs the given action on each element, providing sequential index with the element.
inline fun IntBuffer.forEachIndexed(action: (index: Int, Int) -> Unit)
Performs the given action on each element, providing sequential index with the element.
inline fun LongBuffer.forEachIndexed(action: (index: Int, Long) -> Unit)
Performs the given action on each element, providing sequential index with the element.
inline fun ShortBuffer.forEachIndexed(action: (index: Int, Short) -> Unit)
Performs the given action on each element, providing sequential index with the element.
getOrElse
Link copied to clipboard
inline fun ByteBuffer.getOrElse(index: Int, defaultValue: (Int) -> Byte): Byte
Returns an element at the given index or the result of calling the defaultValue function if the index is out of bounds of this buffer.
inline fun CharBuffer.getOrElse(index: Int, defaultValue: (Int) -> Char): Char
Returns an element at the given index or the result of calling the defaultValue function if the index is out of bounds of this buffer.
inline fun DoubleBuffer.getOrElse(index: Int, defaultValue: (Int) -> Double): Double
Returns an element at the given index or the result of calling the defaultValue function if the index is out of bounds of this buffer.
inline fun FloatBuffer.getOrElse(index: Int, defaultValue: (Int) -> Float): Float
Returns an element at the given index or the result of calling the defaultValue function if the index is out of bounds of this buffer.
inline fun IntBuffer.getOrElse(index: Int, defaultValue: (Int) -> Int): Int
Returns an element at the given index or the result of calling the defaultValue function if the index is out of bounds of this buffer.
inline fun LongBuffer.getOrElse(index: Int, defaultValue: (Int) -> Long): Long
Returns an element at the given index or the result of calling the defaultValue function if the index is out of bounds of this buffer.
inline fun ShortBuffer.getOrElse(index: Int, defaultValue: (Int) -> Short): Short
Returns an element at the given index or the result of calling the defaultValue function if the index is out of bounds of this buffer.
getOrNull
Link copied to clipboard
fun ByteBuffer.getOrNull(index: Int): Byte?
Returns an element at the given index or null if the index is out of bounds of this buffer.
fun CharBuffer.getOrNull(index: Int): Char?
Returns an element at the given index or null if the index is out of bounds of this buffer.
fun DoubleBuffer.getOrNull(index: Int): Double?
Returns an element at the given index or null if the index is out of bounds of this buffer.
fun FloatBuffer.getOrNull(index: Int): Float?
Returns an element at the given index or null if the index is out of bounds of this buffer.
fun IntBuffer.getOrNull(index: Int): Int?
Returns an element at the given index or null if the index is out of bounds of this buffer.
fun LongBuffer.getOrNull(index: Int): Long?
Returns an element at the given index or null if the index is out of bounds of this buffer.
fun ShortBuffer.getOrNull(index: Int): Short?
Returns an element at the given index or null if the index is out of bounds of this buffer.
groupBy
Link copied to clipboard
inline fun <K> ByteBuffer.groupBy(keySelector: (Byte) -> K): Map<K, List<Byte>>
Groups elements of the original array by the key returned by the given keySelector function applied to each element and returns a map where each group key is associated with a list of corresponding elements.
inline fun <K> CharBuffer.groupBy(keySelector: (Char) -> K): Map<K, List<Char>>
Groups elements of the original array by the key returned by the given keySelector function applied to each element and returns a map where each group key is associated with a list of corresponding elements.
inline fun <K> DoubleBuffer.groupBy(keySelector: (Double) -> K): Map<K, List<Double>>
Groups elements of the original array by the key returned by the given keySelector function applied to each element and returns a map where each group key is associated with a list of corresponding elements.
inline fun <K> FloatBuffer.groupBy(keySelector: (Float) -> K): Map<K, List<Float>>
Groups elements of the original array by the key returned by the given keySelector function applied to each element and returns a map where each group key is associated with a list of corresponding elements.
inline fun <K> IntBuffer.groupBy(keySelector: (Int) -> K): Map<K, List<Int>>
Groups elements of the original array by the key returned by the given keySelector function applied to each element and returns a map where each group key is associated with a list of corresponding elements.
inline fun <K> LongBuffer.groupBy(keySelector: (Long) -> K): Map<K, List<Long>>
Groups elements of the original array by the key returned by the given keySelector function applied to each element and returns a map where each group key is associated with a list of corresponding elements.
inline fun <K> ShortBuffer.groupBy(keySelector: (Short) -> K): Map<K, List<Short>>
Groups elements of the original array by the key returned by the given keySelector function applied to each element and returns a map where each group key is associated with a list of corresponding elements.
inline fun <K, V> ByteBuffer.groupBy(keySelector: (Byte) -> K, valueTransform: (Byte) -> V): Map<K, List<V>>
Groups values returned by the valueTransform function applied to each element of the original array by the key returned by the given keySelector function applied to the element and returns a map where each group key is associated with a list of corresponding values.
inline fun <K, V> CharBuffer.groupBy(keySelector: (Char) -> K, valueTransform: (Char) -> V): Map<K, List<V>>
Groups values returned by the valueTransform function applied to each element of the original array by the key returned by the given keySelector function applied to the element and returns a map where each group key is associated with a list of corresponding values.
inline fun <K, V> DoubleBuffer.groupBy(keySelector: (Double) -> K, valueTransform: (Double) -> V): Map<K, List<V>>
Groups values returned by the valueTransform function applied to each element of the original array by the key returned by the given keySelector function applied to the element and returns a map where each group key is associated with a list of corresponding values.
inline fun <K, V> FloatBuffer.groupBy(keySelector: (Float) -> K, valueTransform: (Float) -> V): Map<K, List<V>>
Groups values returned by the valueTransform function applied to each element of the original array by the key returned by the given keySelector function applied to the element and returns a map where each group key is associated with a list of corresponding values.
inline fun <K, V> IntBuffer.groupBy(keySelector: (Int) -> K, valueTransform: (Int) -> V): Map<K, List<V>>
Groups values returned by the valueTransform function applied to each element of the original array by the key returned by the given keySelector function applied to the element and returns a map where each group key is associated with a list of corresponding values.
inline fun <K, V> LongBuffer.groupBy(keySelector: (Long) -> K, valueTransform: (Long) -> V): Map<K, List<V>>
Groups values returned by the valueTransform function applied to each element of the original array by the key returned by the given keySelector function applied to the element and returns a map where each group key is associated with a list of corresponding values.
inline fun <K, V> ShortBuffer.groupBy(keySelector: (Short) -> K, valueTransform: (Short) -> V): Map<K, List<V>>
Groups values returned by the valueTransform function applied to each element of the original array by the key returned by the given keySelector function applied to the element and returns a map where each group key is associated with a list of corresponding values.
groupByTo
Link copied to clipboard
inline fun <K, M : MutableMap<in K, MutableList<Byte>>> ByteBuffer.groupByTo(destination: M, keySelector: (Byte) -> K): M
Groups elements of the original array by the key returned by the given keySelector function applied to each element and puts to the destination map each group key associated with a list of corresponding elements.
inline fun <K, M : MutableMap<in K, MutableList<Char>>> CharBuffer.groupByTo(destination: M, keySelector: (Char) -> K): M
Groups elements of the original array by the key returned by the given keySelector function applied to each element and puts to the destination map each group key associated with a list of corresponding elements.
inline fun <K, M : MutableMap<in K, MutableList<Double>>> DoubleBuffer.groupByTo(destination: M, keySelector: (Double) -> K): M
Groups elements of the original array by the key returned by the given keySelector function applied to each element and puts to the destination map each group key associated with a list of corresponding elements.
inline fun <K, M : MutableMap<in K, MutableList<Float>>> FloatBuffer.groupByTo(destination: M, keySelector: (Float) -> K): M
Groups elements of the original array by the key returned by the given keySelector function applied to each element and puts to the destination map each group key associated with a list of corresponding elements.
inline fun <K, M : MutableMap<in K, MutableList<Int>>> IntBuffer.groupByTo(destination: M, keySelector: (Int) -> K): M
Groups elements of the original array by the key returned by the given keySelector function applied to each element and puts to the destination map each group key associated with a list of corresponding elements.
inline fun <K, M : MutableMap<in K, MutableList<Long>>> LongBuffer.groupByTo(destination: M, keySelector: (Long) -> K): M
Groups elements of the original array by the key returned by the given keySelector function applied to each element and puts to the destination map each group key associated with a list of corresponding elements.
inline fun <K, M : MutableMap<in K, MutableList<Short>>> ShortBuffer.groupByTo(destination: M, keySelector: (Short) -> K): M
Groups elements of the original array by the key returned by the given keySelector function applied to each element and puts to the destination map each group key associated with a list of corresponding elements.
inline fun <K, V, M : MutableMap<in K, MutableList<V>>> ByteBuffer.groupByTo(destination: M, keySelector: (Byte) -> K, valueTransform: (Byte) -> V): M
Groups values returned by the valueTransform function applied to each element of the original array by the key returned by the given keySelector function applied to the element and puts to the destination map each group key associated with a list of corresponding values.
inline fun <K, V, M : MutableMap<in K, MutableList<V>>> CharBuffer.groupByTo(destination: M, keySelector: (Char) -> K, valueTransform: (Char) -> V): M
Groups values returned by the valueTransform function applied to each element of the original array by the key returned by the given keySelector function applied to the element and puts to the destination map each group key associated with a list of corresponding values.
inline fun <K, V, M : MutableMap<in K, MutableList<V>>> DoubleBuffer.groupByTo(destination: M, keySelector: (Double) -> K, valueTransform: (Double) -> V): M
Groups values returned by the valueTransform function applied to each element of the original array by the key returned by the given keySelector function applied to the element and puts to the destination map each group key associated with a list of corresponding values.
inline fun <K, V, M : MutableMap<in K, MutableList<V>>> FloatBuffer.groupByTo(destination: M, keySelector: (Float) -> K, valueTransform: (Float) -> V): M
Groups values returned by the valueTransform function applied to each element of the original array by the key returned by the given keySelector function applied to the element and puts to the destination map each group key associated with a list of corresponding values.
inline fun <K, V, M : MutableMap<in K, MutableList<V>>> IntBuffer.groupByTo(destination: M, keySelector: (Int) -> K, valueTransform: (Int) -> V): M
Groups values returned by the valueTransform function applied to each element of the original array by the key returned by the given keySelector function applied to the element and puts to the destination map each group key associated with a list of corresponding values.
inline fun <K, V, M : MutableMap<in K, MutableList<V>>> LongBuffer.groupByTo(destination: M, keySelector: (Long) -> K, valueTransform: (Long) -> V): M
Groups values returned by the valueTransform function applied to each element of the original array by the key returned by the given keySelector function applied to the element and puts to the destination map each group key associated with a list of corresponding values.
inline fun <K, V, M : MutableMap<in K, MutableList<V>>> ShortBuffer.groupByTo(destination: M, keySelector: (Short) -> K, valueTransform: (Short) -> V): M
Groups values returned by the valueTransform function applied to each element of the original array by the key returned by the given keySelector function applied to the element and puts to the destination map each group key associated with a list of corresponding values.
indexOf
Link copied to clipboard
fun ByteBuffer.indexOf(element: Byte): Int
Returns first index of element, or -1 if the buffer does not contain element.
fun CharBuffer.indexOf(element: Char): Int
Returns first index of element, or -1 if the buffer does not contain element.
fun DoubleBuffer.indexOf(element: Double): Int
Returns first index of element, or -1 if the buffer does not contain element.
fun FloatBuffer.indexOf(element: Float): Int
Returns first index of element, or -1 if the buffer does not contain element.
fun IntBuffer.indexOf(element: Int): Int
Returns first index of element, or -1 if the buffer does not contain element.
fun LongBuffer.indexOf(element: Long): Int
Returns first index of element, or -1 if the buffer does not contain element.
fun ShortBuffer.indexOf(element: Short): Int
Returns first index of element, or -1 if the buffer does not contain element.
indexOfFirst
Link copied to clipboard
inline fun ByteBuffer.indexOfFirst(predicate: (Byte) -> Boolean): Int
Returns index of the first element matching the given predicate, or -1 if the buffer does not contain such element.
inline fun CharBuffer.indexOfFirst(predicate: (Char) -> Boolean): Int
Returns index of the first element matching the given predicate, or -1 if the buffer does not contain such element.
inline fun DoubleBuffer.indexOfFirst(predicate: (Double) -> Boolean): Int
Returns index of the first element matching the given predicate, or -1 if the buffer does not contain such element.
inline fun FloatBuffer.indexOfFirst(predicate: (Float) -> Boolean): Int
Returns index of the first element matching the given predicate, or -1 if the buffer does not contain such element.
inline fun IntBuffer.indexOfFirst(predicate: (Int) -> Boolean): Int
Returns index of the first element matching the given predicate, or -1 if the buffer does not contain such element.
inline fun LongBuffer.indexOfFirst(predicate: (Long) -> Boolean): Int
Returns index of the first element matching the given predicate, or -1 if the buffer does not contain such element.
inline fun ShortBuffer.indexOfFirst(predicate: (Short) -> Boolean): Int
Returns index of the first element matching the given predicate, or -1 if the buffer does not contain such element.
indexOfLast
Link copied to clipboard
inline fun ByteBuffer.indexOfLast(predicate: (Byte) -> Boolean): Int
Returns index of the last element matching the given predicate, or -1 if the buffer does not contain such element.
inline fun CharBuffer.indexOfLast(predicate: (Char) -> Boolean): Int
Returns index of the last element matching the given predicate, or -1 if the buffer does not contain such element.
inline fun DoubleBuffer.indexOfLast(predicate: (Double) -> Boolean): Int
Returns index of the last element matching the given predicate, or -1 if the buffer does not contain such element.
inline fun FloatBuffer.indexOfLast(predicate: (Float) -> Boolean): Int
Returns index of the last element matching the given predicate, or -1 if the buffer does not contain such element.
inline fun IntBuffer.indexOfLast(predicate: (Int) -> Boolean): Int
Returns index of the last element matching the given predicate, or -1 if the buffer does not contain such element.
inline fun LongBuffer.indexOfLast(predicate: (Long) -> Boolean): Int
Returns index of the last element matching the given predicate, or -1 if the buffer does not contain such element.
inline fun ShortBuffer.indexOfLast(predicate: (Short) -> Boolean): Int
Returns index of the last element matching the given predicate, or -1 if the buffer does not contain such element.
intersect
Link copied to clipboard
infix fun ByteBuffer.intersect(other: Iterable<Byte>): Set<Byte>
Returns a set containing all elements that are contained by both this array and the specified collection.
infix fun CharBuffer.intersect(other: Iterable<Char>): Set<Char>
Returns a set containing all elements that are contained by both this array and the specified collection.
infix fun DoubleBuffer.intersect(other: Iterable<Double>): Set<Double>
Returns a set containing all elements that are contained by both this array and the specified collection.
infix fun FloatBuffer.intersect(other: Iterable<Float>): Set<Float>
Returns a set containing all elements that are contained by both this array and the specified collection.
infix fun IntBuffer.intersect(other: Iterable<Int>): Set<Int>
Returns a set containing all elements that are contained by both this array and the specified collection.
infix fun LongBuffer.intersect(other: Iterable<Long>): Set<Long>
Returns a set containing all elements that are contained by both this array and the specified collection.
infix fun ShortBuffer.intersect(other: Iterable<Short>): Set<Short>
Returns a set containing all elements that are contained by both this array and the specified collection.
isEmpty
Link copied to clipboard
fun ByteBuffer.isEmpty(): Boolean
Returns true if the buffer is empty.
fun CharBuffer.isEmpty(): Boolean
Returns true if the buffer is empty.
fun DoubleBuffer.isEmpty(): Boolean
Returns true if the buffer is empty.
fun FloatBuffer.isEmpty(): Boolean
Returns true if the buffer is empty.
fun IntBuffer.isEmpty(): Boolean
Returns true if the buffer is empty.
fun LongBuffer.isEmpty(): Boolean
Returns true if the buffer is empty.
fun ShortBuffer.isEmpty(): Boolean
Returns true if the buffer is empty.
isNotEmpty
Link copied to clipboard
fun ByteBuffer.isNotEmpty(): Boolean
Returns true if the buffer is not empty.
fun CharBuffer.isNotEmpty(): Boolean
Returns true if the buffer is not empty.
fun DoubleBuffer.isNotEmpty(): Boolean
Returns true if the buffer is not empty.
fun FloatBuffer.isNotEmpty(): Boolean
Returns true if the buffer is not empty.
fun IntBuffer.isNotEmpty(): Boolean
Returns true if the buffer is not empty.
fun LongBuffer.isNotEmpty(): Boolean
Returns true if the buffer is not empty.
fun ShortBuffer.isNotEmpty(): Boolean
Returns true if the buffer is not empty.
iterator
Link copied to clipboard
operator fun ByteBuffer.iterator(): ByteBufferIterator
operator fun CharBuffer.iterator(): CharBufferIterator
operator fun DoubleBuffer.iterator(): DoubleBufferIterator
operator fun FloatBuffer.iterator(): FloatBufferIterator
operator fun IntBuffer.iterator(): IntBufferIterator
operator fun LongBuffer.iterator(): LongBufferIterator
operator fun ShortBuffer.iterator(): ShortBufferIterator
joinTo
Link copied to clipboard
fun <A : Appendable> ByteBuffer.joinTo(buffer: A, separator: CharSequence = ", ", prefix: CharSequence = "", postfix: CharSequence = "", limit: Int = -1, truncated: CharSequence = "...", transform: (Byte) -> CharSequence? = null): A
Appends the string from all the elements separated using separator and using the given prefix and postfix if supplied.
fun <A : Appendable> CharBuffer.joinTo(buffer: A, separator: CharSequence = ", ", prefix: CharSequence = "", postfix: CharSequence = "", limit: Int = -1, truncated: CharSequence = "...", transform: (Char) -> CharSequence? = null): A
Appends the string from all the elements separated using separator and using the given prefix and postfix if supplied.
fun <A : Appendable> DoubleBuffer.joinTo(buffer: A, separator: CharSequence = ", ", prefix: CharSequence = "", postfix: CharSequence = "", limit: Int = -1, truncated: CharSequence = "...", transform: (Double) -> CharSequence? = null): A
Appends the string from all the elements separated using separator and using the given prefix and postfix if supplied.
fun <A : Appendable> FloatBuffer.joinTo(buffer: A, separator: CharSequence = ", ", prefix: CharSequence = "", postfix: CharSequence = "", limit: Int = -1, truncated: CharSequence = "...", transform: (Float) -> CharSequence? = null): A
Appends the string from all the elements separated using separator and using the given prefix and postfix if supplied.
fun <A : Appendable> IntBuffer.joinTo(buffer: A, separator: CharSequence = ", ", prefix: CharSequence = "", postfix: CharSequence = "", limit: Int = -1, truncated: CharSequence = "...", transform: (Int) -> CharSequence? = null): A
Appends the string from all the elements separated using separator and using the given prefix and postfix if supplied.
fun <A : Appendable> LongBuffer.joinTo(buffer: A, separator: CharSequence = ", ", prefix: CharSequence = "", postfix: CharSequence = "", limit: Int = -1, truncated: CharSequence = "...", transform: (Long) -> CharSequence? = null): A
Appends the string from all the elements separated using separator and using the given prefix and postfix if supplied.
fun <A : Appendable> ShortBuffer.joinTo(buffer: A, separator: CharSequence = ", ", prefix: CharSequence = "", postfix: CharSequence = "", limit: Int = -1, truncated: CharSequence = "...", transform: (Short) -> CharSequence? = null): A
Appends the string from all the elements separated using separator and using the given prefix and postfix if supplied.
joinToString
Link copied to clipboard
fun ByteBuffer.joinToString(separator: CharSequence = ", ", prefix: CharSequence = "", postfix: CharSequence = "", limit: Int = -1, truncated: CharSequence = "...", transform: (Byte) -> CharSequence? = null): String
Creates a string from all the elements separated using separator and using the given prefix and postfix if supplied.
fun CharBuffer.joinToString(separator: CharSequence = ", ", prefix: CharSequence = "", postfix: CharSequence = "", limit: Int = -1, truncated: CharSequence = "...", transform: (Char) -> CharSequence? = null): String
Creates a string from all the elements separated using separator and using the given prefix and postfix if supplied.
fun DoubleBuffer.joinToString(separator: CharSequence = ", ", prefix: CharSequence = "", postfix: CharSequence = "", limit: Int = -1, truncated: CharSequence = "...", transform: (Double) -> CharSequence? = null): String
Creates a string from all the elements separated using separator and using the given prefix and postfix if supplied.
fun FloatBuffer.joinToString(separator: CharSequence = ", ", prefix: CharSequence = "", postfix: CharSequence = "", limit: Int = -1, truncated: CharSequence = "...", transform: (Float) -> CharSequence? = null): String
Creates a string from all the elements separated using separator and using the given prefix and postfix if supplied.
fun IntBuffer.joinToString(separator: CharSequence = ", ", prefix: CharSequence = "", postfix: CharSequence = "", limit: Int = -1, truncated: CharSequence = "...", transform: (Int) -> CharSequence? = null): String
Creates a string from all the elements separated using separator and using the given prefix and postfix if supplied.
fun LongBuffer.joinToString(separator: CharSequence = ", ", prefix: CharSequence = "", postfix: CharSequence = "", limit: Int = -1, truncated: CharSequence = "...", transform: (Long) -> CharSequence? = null): String
Creates a string from all the elements separated using separator and using the given prefix and postfix if supplied.
fun ShortBuffer.joinToString(separator: CharSequence = ", ", prefix: CharSequence = "", postfix: CharSequence = "", limit: Int = -1, truncated: CharSequence = "...", transform: (Short) -> CharSequence? = null): String
Creates a string from all the elements separated using separator and using the given prefix and postfix if supplied.
last
Link copied to clipboard
fun ByteBuffer.last(): Byte
Returns the last element.
fun CharBuffer.last(): Char
Returns the last element.
fun DoubleBuffer.last(): Double
Returns the last element.
fun FloatBuffer.last(): Float
Returns the last element.
fun IntBuffer.last(): Int
Returns the last element.
fun LongBuffer.last(): Long
Returns the last element.
fun ShortBuffer.last(): Short
Returns the last element.
inline fun ByteBuffer.last(predicate: (Byte) -> Boolean): Byte
Returns the last element matching the given predicate.
inline fun CharBuffer.last(predicate: (Char) -> Boolean): Char
Returns the last element matching the given predicate.
inline fun DoubleBuffer.last(predicate: (Double) -> Boolean): Double
Returns the last element matching the given predicate.
inline fun FloatBuffer.last(predicate: (Float) -> Boolean): Float
Returns the last element matching the given predicate.
inline fun IntBuffer.last(predicate: (Int) -> Boolean): Int
Returns the last element matching the given predicate.
inline fun LongBuffer.last(predicate: (Long) -> Boolean): Long
Returns the last element matching the given predicate.
inline fun ShortBuffer.last(predicate: (Short) -> Boolean): Short
Returns the last element matching the given predicate.
lastIndexOf
Link copied to clipboard
fun ByteBuffer.lastIndexOf(element: Byte): Int
Returns last index of element, or -1 if the buffer does not contain element.
fun CharBuffer.lastIndexOf(element: Char): Int
Returns last index of element, or -1 if the buffer does not contain element.
fun DoubleBuffer.lastIndexOf(element: Double): Int
Returns last index of element, or -1 if the buffer does not contain element.
fun FloatBuffer.lastIndexOf(element: Float): Int
Returns last index of element, or -1 if the buffer does not contain element.
fun IntBuffer.lastIndexOf(element: Int): Int
Returns last index of element, or -1 if the buffer does not contain element.
fun LongBuffer.lastIndexOf(element: Long): Int
Returns last index of element, or -1 if the buffer does not contain element.
fun ShortBuffer.lastIndexOf(element: Short): Int
Returns last index of element, or -1 if the buffer does not contain element.
lastOrNull
Link copied to clipboard
fun ByteBuffer.lastOrNull(): Byte?
Returns the last element, or null if the buffer is empty.
fun CharBuffer.lastOrNull(): Char?
Returns the last element, or null if the buffer is empty.
fun DoubleBuffer.lastOrNull(): Double?
Returns the last element, or null if the buffer is empty.
fun FloatBuffer.lastOrNull(): Float?
Returns the last element, or null if the buffer is empty.
fun IntBuffer.lastOrNull(): Int?
Returns the last element, or null if the buffer is empty.
fun LongBuffer.lastOrNull(): Long?
Returns the last element, or null if the buffer is empty.
fun ShortBuffer.lastOrNull(): Short?
Returns the last element, or null if the buffer is empty.
inline fun ByteBuffer.lastOrNull(predicate: (Byte) -> Boolean): Byte?
Returns the last element matching the given predicate, or null if no such element was found.
inline fun CharBuffer.lastOrNull(predicate: (Char) -> Boolean): Char?
Returns the last element matching the given predicate, or null if no such element was found.
inline fun DoubleBuffer.lastOrNull(predicate: (Double) -> Boolean): Double?
Returns the last element matching the given predicate, or null if no such element was found.
inline fun FloatBuffer.lastOrNull(predicate: (Float) -> Boolean): Float?
Returns the last element matching the given predicate, or null if no such element was found.
inline fun IntBuffer.lastOrNull(predicate: (Int) -> Boolean): Int?
Returns the last element matching the given predicate, or null if no such element was found.
inline fun LongBuffer.lastOrNull(predicate: (Long) -> Boolean): Long?
Returns the last element matching the given predicate, or null if no such element was found.
inline fun ShortBuffer.lastOrNull(predicate: (Short) -> Boolean): Short?
Returns the last element matching the given predicate, or null if no such element was found.
map
Link copied to clipboard
inline fun <R> ByteBuffer.map(transform: (Byte) -> R): List<R>
Returns a list containing the results of applying the given transform function to each element in the original buffer.
inline fun <R> CharBuffer.map(transform: (Char) -> R): List<R>
Returns a list containing the results of applying the given transform function to each element in the original buffer.
inline fun <R> DoubleBuffer.map(transform: (Double) -> R): List<R>
Returns a list containing the results of applying the given transform function to each element in the original buffer.
inline fun <R> FloatBuffer.map(transform: (Float) -> R): List<R>
Returns a list containing the results of applying the given transform function to each element in the original buffer.
inline fun <R> IntBuffer.map(transform: (Int) -> R): List<R>
Returns a list containing the results of applying the given transform function to each element in the original buffer.
inline fun <R> LongBuffer.map(transform: (Long) -> R): List<R>
Returns a list containing the results of applying the given transform function to each element in the original buffer.
inline fun <R> ShortBuffer.map(transform: (Short) -> R): List<R>
Returns a list containing the results of applying the given transform function to each element in the original buffer.
mapCapacity
Link copied to clipboard
fun mapCapacity(expectedSize: Int): Int
Calculate the initial capacity of a map, based on Guava's com.google.common.collect.Maps.capacity approach.
mapIndexed
Link copied to clipboard
inline fun <R> ByteBuffer.mapIndexed(transform: (index: Int, Byte) -> R): List<R>
Returns a list containing the results of applying the given transform function to each element and its index in the original buffer.
inline fun <R> CharBuffer.mapIndexed(transform: (index: Int, Char) -> R): List<R>
Returns a list containing the results of applying the given transform function to each element and its index in the original buffer.
inline fun <R> DoubleBuffer.mapIndexed(transform: (index: Int, Double) -> R): List<R>
Returns a list containing the results of applying the given transform function to each element and its index in the original buffer.
inline fun <R> FloatBuffer.mapIndexed(transform: (index: Int, Float) -> R): List<R>
Returns a list containing the results of applying the given transform function to each element and its index in the original buffer.
inline fun <R> IntBuffer.mapIndexed(transform: (index: Int, Int) -> R): List<R>
Returns a list containing the results of applying the given transform function to each element and its index in the original buffer.
inline fun <R> LongBuffer.mapIndexed(transform: (index: Int, Long) -> R): List<R>
Returns a list containing the results of applying the given transform function to each element and its index in the original buffer.
inline fun <R> ShortBuffer.mapIndexed(transform: (index: Int, Short) -> R): List<R>
Returns a list containing the results of applying the given transform function to each element and its index in the original buffer.
mapIndexedTo
Link copied to clipboard
inline fun <R, C : MutableCollection<in R>> ByteBuffer.mapIndexedTo(destination: C, transform: (index: Int, Byte) -> R): C
Applies the given transform function to each element and its index in the original buffer and appends the results to the given destination.
inline fun <R, C : MutableCollection<in R>> CharBuffer.mapIndexedTo(destination: C, transform: (index: Int, Char) -> R): C
Applies the given transform function to each element and its index in the original buffer and appends the results to the given destination.
inline fun <R, C : MutableCollection<in R>> DoubleBuffer.mapIndexedTo(destination: C, transform: (index: Int, Double) -> R): C
Applies the given transform function to each element and its index in the original buffer and appends the results to the given destination.
inline fun <R, C : MutableCollection<in R>> FloatBuffer.mapIndexedTo(destination: C, transform: (index: Int, Float) -> R): C
Applies the given transform function to each element and its index in the original buffer and appends the results to the given destination.
inline fun <R, C : MutableCollection<in R>> IntBuffer.mapIndexedTo(destination: C, transform: (index: Int, Int) -> R): C
Applies the given transform function to each element and its index in the original buffer and appends the results to the given destination.
inline fun <R, C : MutableCollection<in R>> LongBuffer.mapIndexedTo(destination: C, transform: (index: Int, Long) -> R): C
Applies the given transform function to each element and its index in the original buffer and appends the results to the given destination.
inline fun <R, C : MutableCollection<in R>> ShortBuffer.mapIndexedTo(destination: C, transform: (index: Int, Short) -> R): C
Applies the given transform function to each element and its index in the original buffer and appends the results to the given destination.
mapTo
Link copied to clipboard
inline fun <R, C : MutableCollection<in R>> ByteBuffer.mapTo(destination: C, transform: (Byte) -> R): C
Applies the given transform function to each element of the original buffer and appends the results to the given destination.
inline fun <R, C : MutableCollection<in R>> CharBuffer.mapTo(destination: C, transform: (Char) -> R): C
Applies the given transform function to each element of the original buffer and appends the results to the given destination.
inline fun <R, C : MutableCollection<in R>> DoubleBuffer.mapTo(destination: C, transform: (Double) -> R): C
Applies the given transform function to each element of the original buffer and appends the results to the given destination.
inline fun <R, C : MutableCollection<in R>> FloatBuffer.mapTo(destination: C, transform: (Float) -> R): C
Applies the given transform function to each element of the original buffer and appends the results to the given destination.
inline fun <R, C : MutableCollection<in R>> IntBuffer.mapTo(destination: C, transform: (Int) -> R): C
Applies the given transform function to each element of the original buffer and appends the results to the given destination.
inline fun <R, C : MutableCollection<in R>> LongBuffer.mapTo(destination: C, transform: (Long) -> R): C
Applies the given transform function to each element of the original buffer and appends the results to the given destination.
inline fun <R, C : MutableCollection<in R>> ShortBuffer.mapTo(destination: C, transform: (Short) -> R): C
Applies the given transform function to each element of the original buffer and appends the results to the given destination.
maxByOrNull
Link copied to clipboard
inline fun <R : Comparable<R>> ByteBuffer.maxByOrNull(selector: (Byte) -> R): Byte?
Returns the first element yielding the largest value of the given function or null if there are no elements.
inline fun <R : Comparable<R>> CharBuffer.maxByOrNull(selector: (Char) -> R): Char?
Returns the first element yielding the largest value of the given function or null if there are no elements.
inline fun <R : Comparable<R>> DoubleBuffer.maxByOrNull(selector: (Double) -> R): Double?
Returns the first element yielding the largest value of the given function or null if there are no elements.
inline fun <R : Comparable<R>> FloatBuffer.maxByOrNull(selector: (Float) -> R): Float?
Returns the first element yielding the largest value of the given function or null if there are no elements.
inline fun <R : Comparable<R>> IntBuffer.maxByOrNull(selector: (Int) -> R): Int?
Returns the first element yielding the largest value of the given function or null if there are no elements.
inline fun <R : Comparable<R>> LongBuffer.maxByOrNull(selector: (Long) -> R): Long?
Returns the first element yielding the largest value of the given function or null if there are no elements.
inline fun <R : Comparable<R>> ShortBuffer.maxByOrNull(selector: (Short) -> R): Short?
Returns the first element yielding the largest value of the given function or null if there are no elements.
maxOf
Link copied to clipboard
inline fun <R : Comparable<R>> ByteBuffer.maxOf(selector: (Byte) -> R): R
Returns the largest value among all values produced by selector function applied to each element in the array.
inline fun ByteBuffer.maxOf(selector: (Byte) -> Double): Double
Returns the largest value among all values produced by selector function applied to each element in the array.
inline fun <R : Comparable<R>> CharBuffer.maxOf(selector: (Char) -> R): R
Returns the largest value among all values produced by selector function applied to each element in the array.
inline fun CharBuffer.maxOf(selector: (Char) -> Double): Double
Returns the largest value among all values produced by selector function applied to each element in the array.
inline fun <R : Comparable<R>> DoubleBuffer.maxOf(selector: (Double) -> R): R
Returns the largest value among all values produced by selector function applied to each element in the array.
inline fun DoubleBuffer.maxOf(selector: (Double) -> Double): Double
Returns the largest value among all values produced by selector function applied to each element in the array.
inline fun <R : Comparable<R>> FloatBuffer.maxOf(selector: (Float) -> R): R
Returns the largest value among all values produced by selector function applied to each element in the array.
inline fun FloatBuffer.maxOf(selector: (Float) -> Double): Double
Returns the largest value among all values produced by selector function applied to each element in the array.
inline fun <R : Comparable<R>> IntBuffer.maxOf(selector: (Int) -> R): R
Returns the largest value among all values produced by selector function applied to each element in the array.
inline fun IntBuffer.maxOf(selector: (Int) -> Double): Double
Returns the largest value among all values produced by selector function applied to each element in the array.
inline fun <R : Comparable<R>> LongBuffer.maxOf(selector: (Long) -> R): R
Returns the largest value among all values produced by selector function applied to each element in the array.
inline fun LongBuffer.maxOf(selector: (Long) -> Double): Double
Returns the largest value among all values produced by selector function applied to each element in the array.
inline fun <R : Comparable<R>> ShortBuffer.maxOf(selector: (Short) -> R): R
Returns the largest value among all values produced by selector function applied to each element in the array.
inline fun ShortBuffer.maxOf(selector: (Short) -> Double): Double
Returns the largest value among all values produced by selector function applied to each element in the array.
maxOfOrNull
Link copied to clipboard
inline fun <R : Comparable<R>> ByteBuffer.maxOfOrNull(selector: (Byte) -> R): R?
Returns the largest value among all values produced by selector function applied to each element in the array or null if there are no elements.
inline fun ByteBuffer.maxOfOrNull(selector: (Byte) -> Double): Double?
Returns the largest value among all values produced by selector function applied to each element in the array or null if there are no elements.
inline fun ByteBuffer.maxOfOrNull(selector: (Byte) -> Float): Float?
Returns the largest value among all values produced by selector function applied to each element in the array or null if there are no elements.
inline fun <R : Comparable<R>> CharBuffer.maxOfOrNull(selector: (Char) -> R): R?
Returns the largest value among all values produced by selector function applied to each element in the array or null if there are no elements.
inline fun CharBuffer.maxOfOrNull(selector: (Char) -> Double): Double?
Returns the largest value among all values produced by selector function applied to each element in the array or null if there are no elements.
inline fun CharBuffer.maxOfOrNull(selector: (Char) -> Float): Float?
Returns the largest value among all values produced by selector function applied to each element in the array or null if there are no elements.
inline fun <R : Comparable<R>> DoubleBuffer.maxOfOrNull(selector: (Double) -> R): R?
Returns the largest value among all values produced by selector function applied to each element in the array or null if there are no elements.
inline fun DoubleBuffer.maxOfOrNull(selector: (Double) -> Double): Double?
Returns the largest value among all values produced by selector function applied to each element in the array or null if there are no elements.
inline fun DoubleBuffer.maxOfOrNull(selector: (Double) -> Float): Float?
Returns the largest value among all values produced by selector function applied to each element in the array or null if there are no elements.
inline fun <R : Comparable<R>> FloatBuffer.maxOfOrNull(selector: (Float) -> R): R?
Returns the largest value among all values produced by selector function applied to each element in the array or null if there are no elements.
inline fun FloatBuffer.maxOfOrNull(selector: (Float) -> Double): Double?
Returns the largest value among all values produced by selector function applied to each element in the array or null if there are no elements.
inline fun FloatBuffer.maxOfOrNull(selector: (Float) -> Float): Float?
Returns the largest value among all values produced by selector function applied to each element in the array or null if there are no elements.
inline fun <R : Comparable<R>> IntBuffer.maxOfOrNull(selector: (Int) -> R): R?
Returns the largest value among all values produced by selector function applied to each element in the array or null if there are no elements.
inline fun IntBuffer.maxOfOrNull(selector: (Int) -> Double): Double?
Returns the largest value among all values produced by selector function applied to each element in the array or null if there are no elements.
inline fun IntBuffer.maxOfOrNull(selector: (Int) -> Float): Float?
Returns the largest value among all values produced by selector function applied to each element in the array or null if there are no elements.
inline fun <R : Comparable<R>> LongBuffer.maxOfOrNull(selector: (Long) -> R): R?
Returns the largest value among all values produced by selector function applied to each element in the array or null if there are no elements.
inline fun LongBuffer.maxOfOrNull(selector: (Long) -> Double): Double?
Returns the largest value among all values produced by selector function applied to each element in the array or null if there are no elements.
inline fun LongBuffer.maxOfOrNull(selector: (Long) -> Float): Float?
Returns the largest value among all values produced by selector function applied to each element in the array or null if there are no elements.
inline fun <R : Comparable<R>> ShortBuffer.maxOfOrNull(selector: (Short) -> R): R?
Returns the largest value among all values produced by selector function applied to each element in the array or null if there are no elements.
inline fun ShortBuffer.maxOfOrNull(selector: (Short) -> Double): Double?
Returns the largest value among all values produced by selector function applied to each element in the array or null if there are no elements.
inline fun ShortBuffer.maxOfOrNull(selector: (Short) -> Float): Float?
Returns the largest value among all values produced by selector function applied to each element in the array or null if there are no elements.
maxOfWith
Link copied to clipboard
inline fun <R> ByteBuffer.maxOfWith(comparator: Comparator<in R>, selector: (Byte) -> R): R
Returns the largest value according to the provided comparator among all values produced by selector function applied to each element in the array.
inline fun <R> CharBuffer.maxOfWith(comparator: Comparator<in R>, selector: (Char) -> R): R
Returns the largest value according to the provided comparator among all values produced by selector function applied to each element in the array.
inline fun <R> DoubleBuffer.maxOfWith(comparator: Comparator<in R>, selector: (Double) -> R): R
Returns the largest value according to the provided comparator among all values produced by selector function applied to each element in the array.
inline fun <R> FloatBuffer.maxOfWith(comparator: Comparator<in R>, selector: (Float) -> R): R
Returns the largest value according to the provided comparator among all values produced by selector function applied to each element in the array.
inline fun <R> IntBuffer.maxOfWith(comparator: Comparator<in R>, selector: (Int) -> R): R
Returns the largest value according to the provided comparator among all values produced by selector function applied to each element in the array.
inline fun <R> LongBuffer.maxOfWith(comparator: Comparator<in R>, selector: (Long) -> R): R
Returns the largest value according to the provided comparator among all values produced by selector function applied to each element in the array.
inline fun <R> ShortBuffer.maxOfWith(comparator: Comparator<in R>, selector: (Short) -> R): R
Returns the largest value according to the provided comparator among all values produced by selector function applied to each element in the array.
maxOfWithOrNull
Link copied to clipboard
inline fun <R> ByteBuffer.maxOfWithOrNull(comparator: Comparator<in R>, selector: (Byte) -> R): R?
Returns the largest value according to the provided comparator among all values produced by selector function applied to each element in the array or null if there are no elements.
inline fun <R> CharBuffer.maxOfWithOrNull(comparator: Comparator<in R>, selector: (Char) -> R): R?
Returns the largest value according to the provided comparator among all values produced by selector function applied to each element in the array or null if there are no elements.
inline fun <R> DoubleBuffer.maxOfWithOrNull(comparator: Comparator<in R>, selector: (Double) -> R): R?
Returns the largest value according to the provided comparator among all values produced by selector function applied to each element in the array or null if there are no elements.
inline fun <R> FloatBuffer.maxOfWithOrNull(comparator: Comparator<in R>, selector: (Float) -> R): R?
Returns the largest value according to the provided comparator among all values produced by selector function applied to each element in the array or null if there are no elements.
inline fun <R> IntBuffer.maxOfWithOrNull(comparator: Comparator<in R>, selector: (Int) -> R): R?
Returns the largest value according to the provided comparator among all values produced by selector function applied to each element in the array or null if there are no elements.
inline fun <R> LongBuffer.maxOfWithOrNull(comparator: Comparator<in R>, selector: (Long) -> R): R?
Returns the largest value according to the provided comparator among all values produced by selector function applied to each element in the array or null if there are no elements.
inline fun <R> ShortBuffer.maxOfWithOrNull(comparator: Comparator<in R>, selector: (Short) -> R): R?
Returns the largest value according to the provided comparator among all values produced by selector function applied to each element in the array or null if there are no elements.
maxOrNull
Link copied to clipboard
fun ByteBuffer.maxOrNull(): Byte?
Returns the largest element or null if there are no elements.
fun CharBuffer.maxOrNull(): Char?
Returns the largest element or null if there are no elements.
fun DoubleBuffer.maxOrNull(): Double?
Returns the largest element or null if there are no elements.
fun FloatBuffer.maxOrNull(): Float?
Returns the largest element or null if there are no elements.
fun IntBuffer.maxOrNull(): Int?
Returns the largest element or null if there are no elements.
fun LongBuffer.maxOrNull(): Long?
Returns the largest element or null if there are no elements.
fun ShortBuffer.maxOrNull(): Short?
Returns the largest element or null if there are no elements.
maxWithOrNull
Link copied to clipboard
fun ByteBuffer.maxWithOrNull(comparator: Comparator<in Byte>): Byte?
Returns the first element having the largest value according to the provided comparator or null if there are no elements.
fun CharBuffer.maxWithOrNull(comparator: Comparator<in Char>): Char?
Returns the first element having the largest value according to the provided comparator or null if there are no elements.
fun DoubleBuffer.maxWithOrNull(comparator: Comparator<in Double>): Double?
Returns the first element having the largest value according to the provided comparator or null if there are no elements.
fun FloatBuffer.maxWithOrNull(comparator: Comparator<in Float>): Float?
Returns the first element having the largest value according to the provided comparator or null if there are no elements.
fun IntBuffer.maxWithOrNull(comparator: Comparator<in Int>): Int?
Returns the first element having the largest value according to the provided comparator or null if there are no elements.
fun LongBuffer.maxWithOrNull(comparator: Comparator<in Long>): Long?
Returns the first element having the largest value according to the provided comparator or null if there are no elements.
fun ShortBuffer.maxWithOrNull(comparator: Comparator<in Short>): Short?
Returns the first element having the largest value according to the provided comparator or null if there are no elements.
minByOrNull
Link copied to clipboard
inline fun <R : Comparable<R>> ByteBuffer.minByOrNull(selector: (Byte) -> R): Byte?
Returns the first element yielding the smallest value of the given function or null if there are no elements.
inline fun <R : Comparable<R>> CharBuffer.minByOrNull(selector: (Char) -> R): Char?
Returns the first element yielding the smallest value of the given function or null if there are no elements.
inline fun <R : Comparable<R>> DoubleBuffer.minByOrNull(selector: (Double) -> R): Double?
Returns the first element yielding the smallest value of the given function or null if there are no elements.
inline fun <R : Comparable<R>> FloatBuffer.minByOrNull(selector: (Float) -> R): Float?
Returns the first element yielding the smallest value of the given function or null if there are no elements.
inline fun <R : Comparable<R>> IntBuffer.minByOrNull(selector: (Int) -> R): Int?
Returns the first element yielding the smallest value of the given function or null if there are no elements.
inline fun <R : Comparable<R>> LongBuffer.minByOrNull(selector: (Long) -> R): Long?
Returns the first element yielding the smallest value of the given function or null if there are no elements.
inline fun <R : Comparable<R>> ShortBuffer.minByOrNull(selector: (Short) -> R): Short?
Returns the first element yielding the smallest value of the given function or null if there are no elements.
minOf
Link copied to clipboard
inline fun <R : Comparable<R>> ByteBuffer.minOf(selector: (Byte) -> R): R
Returns the smallest value among all values produced by selector function applied to each element in the array.
inline fun ByteBuffer.minOf(selector: (Byte) -> Double): Double
Returns the smallest value among all values produced by selector function applied to each element in the array.
inline fun ByteBuffer.minOf(selector: (Byte) -> Float): Float
Returns the smallest value among all values produced by selector function applied to each element in the array.
inline fun <R : Comparable<R>> CharBuffer.minOf(selector: (Char) -> R): R
Returns the smallest value among all values produced by selector function applied to each element in the array.
inline fun CharBuffer.minOf(selector: (Char) -> Double): Double
Returns the smallest value among all values produced by selector function applied to each element in the array.
inline fun CharBuffer.minOf(selector: (Char) -> Float): Float
Returns the smallest value among all values produced by selector function applied to each element in the array.
inline fun <R : Comparable<R>> DoubleBuffer.minOf(selector: (Double) -> R): R
Returns the smallest value among all values produced by selector function applied to each element in the array.
inline fun DoubleBuffer.minOf(selector: (Double) -> Double): Double
Returns the smallest value among all values produced by selector function applied to each element in the array.
inline fun DoubleBuffer.minOf(selector: (Double) -> Float): Float
Returns the smallest value among all values produced by selector function applied to each element in the array.
inline fun <R : Comparable<R>> FloatBuffer.minOf(selector: (Float) -> R): R
Returns the smallest value among all values produced by selector function applied to each element in the array.
inline fun FloatBuffer.minOf(selector: (Float) -> Double): Double
Returns the smallest value among all values produced by selector function applied to each element in the array.
inline fun FloatBuffer.minOf(selector: (Float) -> Float): Float
Returns the smallest value among all values produced by selector function applied to each element in the array.
inline fun <R : Comparable<R>> IntBuffer.minOf(selector: (Int) -> R): R
Returns the smallest value among all values produced by selector function applied to each element in the array.
inline fun IntBuffer.minOf(selector: (Int) -> Double): Double
Returns the smallest value among all values produced by selector function applied to each element in the array.
inline fun IntBuffer.minOf(selector: (Int) -> Float): Float
Returns the smallest value among all values produced by selector function applied to each element in the array.
inline fun <R : Comparable<R>> LongBuffer.minOf(selector: (Long) -> R): R
Returns the smallest value among all values produced by selector function applied to each element in the array.
inline fun LongBuffer.minOf(selector: (Long) -> Double): Double
Returns the smallest value among all values produced by selector function applied to each element in the array.
inline fun LongBuffer.minOf(selector: (Long) -> Float): Float
Returns the smallest value among all values produced by selector function applied to each element in the array.
inline fun <R : Comparable<R>> ShortBuffer.minOf(selector: (Short) -> R): R
Returns the smallest value among all values produced by selector function applied to each element in the array.
inline fun ShortBuffer.minOf(selector: (Short) -> Double): Double
Returns the smallest value among all values produced by selector function applied to each element in the array.
inline fun ShortBuffer.minOf(selector: (Short) -> Float): Float
Returns the smallest value among all values produced by selector function applied to each element in the array.
minOfOrNull
Link copied to clipboard
inline fun <R : Comparable<R>> ByteBuffer.minOfOrNull(selector: (Byte) -> R): R?
Returns the smallest value among all values produced by selector function applied to each element in the array or null if there are no elements.
inline fun ByteBuffer.minOfOrNull(selector: (Byte) -> Double): Double?
Returns the smallest value among all values produced by selector function applied to each element in the array or null if there are no elements.
inline fun ByteBuffer.minOfOrNull(selector: (Byte) -> Float): Float?
Returns the smallest value among all values produced by selector function applied to each element in the array or null if there are no elements.
inline fun <R : Comparable<R>> CharBuffer.minOfOrNull(selector: (Char) -> R): R?
Returns the smallest value among all values produced by selector function applied to each element in the array or null if there are no elements.
inline fun CharBuffer.minOfOrNull(selector: (Char) -> Double): Double?
Returns the smallest value among all values produced by selector function applied to each element in the array or null if there are no elements.
inline fun CharBuffer.minOfOrNull(selector: (Char) -> Float): Float?
Returns the smallest value among all values produced by selector function applied to each element in the array or null if there are no elements.
inline fun <R : Comparable<R>> DoubleBuffer.minOfOrNull(selector: (Double) -> R): R?
Returns the smallest value among all values produced by selector function applied to each element in the array or null if there are no elements.
inline fun DoubleBuffer.minOfOrNull(selector: (Double) -> Double): Double?
Returns the smallest value among all values produced by selector function applied to each element in the array or null if there are no elements.
inline fun DoubleBuffer.minOfOrNull(selector: (Double) -> Float): Float?
Returns the smallest value among all values produced by selector function applied to each element in the array or null if there are no elements.
inline fun <R : Comparable<R>> FloatBuffer.minOfOrNull(selector: (Float) -> R): R?
Returns the smallest value among all values produced by selector function applied to each element in the array or null if there are no elements.
inline fun FloatBuffer.minOfOrNull(selector: (Float) -> Double): Double?
Returns the smallest value among all values produced by selector function applied to each element in the array or null if there are no elements.
inline fun FloatBuffer.minOfOrNull(selector: (Float) -> Float): Float?
Returns the smallest value among all values produced by selector function applied to each element in the array or null if there are no elements.
inline fun <R : Comparable<R>> IntBuffer.minOfOrNull(selector: (Int) -> R): R?
Returns the smallest value among all values produced by selector function applied to each element in the array or null if there are no elements.
inline fun IntBuffer.minOfOrNull(selector: (Int) -> Double): Double?
Returns the smallest value among all values produced by selector function applied to each element in the array or null if there are no elements.
inline fun IntBuffer.minOfOrNull(selector: (Int) -> Float): Float?
Returns the smallest value among all values produced by selector function applied to each element in the array or null if there are no elements.
inline fun <R : Comparable<R>> LongBuffer.minOfOrNull(selector: (Long) -> R): R?
Returns the smallest value among all values produced by selector function applied to each element in the array or null if there are no elements.
inline fun LongBuffer.minOfOrNull(selector: (Long) -> Double): Double?
Returns the smallest value among all values produced by selector function applied to each element in the array or null if there are no elements.
inline fun LongBuffer.minOfOrNull(selector: (Long) -> Float): Float?
Returns the smallest value among all values produced by selector function applied to each element in the array or null if there are no elements.
inline fun <R : Comparable<R>> ShortBuffer.minOfOrNull(selector: (Short) -> R): R?
Returns the smallest value among all values produced by selector function applied to each element in the array or null if there are no elements.
inline fun ShortBuffer.minOfOrNull(selector: (Short) -> Double): Double?
Returns the smallest value among all values produced by selector function applied to each element in the array or null if there are no elements.
inline fun ShortBuffer.minOfOrNull(selector: (Short) -> Float): Float?
Returns the smallest value among all values produced by selector function applied to each element in the array or null if there are no elements.
minOfWith
Link copied to clipboard
inline fun <R> ByteBuffer.minOfWith(comparator: Comparator<in R>, selector: (Byte) -> R): R
Returns the smallest value according to the provided comparator among all values produced by selector function applied to each element in the array.
inline fun <R> CharBuffer.minOfWith(comparator: Comparator<in R>, selector: (Char) -> R): R
Returns the smallest value according to the provided comparator among all values produced by selector function applied to each element in the array.
inline fun <R> DoubleBuffer.minOfWith(comparator: Comparator<in R>, selector: (Double) -> R): R
Returns the smallest value according to the provided comparator among all values produced by selector function applied to each element in the array.
inline fun <R> FloatBuffer.minOfWith(comparator: Comparator<in R>, selector: (Float) -> R): R
Returns the smallest value according to the provided comparator among all values produced by selector function applied to each element in the array.
inline fun <R> IntBuffer.minOfWith(comparator: Comparator<in R>, selector: (Int) -> R): R
Returns the smallest value according to the provided comparator among all values produced by selector function applied to each element in the array.
inline fun <R> LongBuffer.minOfWith(comparator: Comparator<in R>, selector: (Long) -> R): R
Returns the smallest value according to the provided comparator among all values produced by selector function applied to each element in the array.
inline fun <R> ShortBuffer.minOfWith(comparator: Comparator<in R>, selector: (Short) -> R): R
Returns the smallest value according to the provided comparator among all values produced by selector function applied to each element in the array.
minOfWithOrNull
Link copied to clipboard
inline fun <R> ByteBuffer.minOfWithOrNull(comparator: Comparator<in R>, selector: (Byte) -> R): R?
Returns the smallest value according to the provided comparator among all values produced by selector function applied to each element in the array or null if there are no elements.
inline fun <R> CharBuffer.minOfWithOrNull(comparator: Comparator<in R>, selector: (Char) -> R): R?
Returns the smallest value according to the provided comparator among all values produced by selector function applied to each element in the array or null if there are no elements.
inline fun <R> DoubleBuffer.minOfWithOrNull(comparator: Comparator<in R>, selector: (Double) -> R): R?
Returns the smallest value according to the provided comparator among all values produced by selector function applied to each element in the array or null if there are no elements.
inline fun <R> FloatBuffer.minOfWithOrNull(comparator: Comparator<in R>, selector: (Float) -> R): R?
Returns the smallest value according to the provided comparator among all values produced by selector function applied to each element in the array or null if there are no elements.
inline fun <R> IntBuffer.minOfWithOrNull(comparator: Comparator<in R>, selector: (Int) -> R): R?
Returns the smallest value according to the provided comparator among all values produced by selector function applied to each element in the array or null if there are no elements.
inline fun <R> LongBuffer.minOfWithOrNull(comparator: Comparator<in R>, selector: (Long) -> R): R?
Returns the smallest value according to the provided comparator among all values produced by selector function applied to each element in the array or null if there are no elements.
inline fun <R> ShortBuffer.minOfWithOrNull(comparator: Comparator<in R>, selector: (Short) -> R): R?
Returns the smallest value according to the provided comparator among all values produced by selector function applied to each element in the array or null if there are no elements.
minOrNull
Link copied to clipboard
fun ByteArray.minOrNull(): Byte?
Returns the smallest element or null if there are no elements.
fun CharArray.minOrNull(): Char?
Returns the smallest element or null if there are no elements.
fun DoubleArray.minOrNull(): Double?
Returns the smallest element or null if there are no elements.
fun FloatArray.minOrNull(): Float?
Returns the smallest element or null if there are no elements.
fun IntArray.minOrNull(): Int?
Returns the smallest element or null if there are no elements.
fun LongArray.minOrNull(): Long?
Returns the smallest element or null if there are no elements.
fun ShortArray.minOrNull(): Short?
Returns the smallest element or null if there are no elements.
minWithOrNull
Link copied to clipboard
fun ByteBuffer.minWithOrNull(comparator: Comparator<in Byte>): Byte?
Returns the first element having the smallest value according to the provided comparator or null if there are no elements.
fun CharBuffer.minWithOrNull(comparator: Comparator<in Char>): Char?
Returns the first element having the smallest value according to the provided comparator or null if there are no elements.
fun DoubleBuffer.minWithOrNull(comparator: Comparator<in Double>): Double?
Returns the first element having the smallest value according to the provided comparator or null if there are no elements.
fun FloatBuffer.minWithOrNull(comparator: Comparator<in Float>): Float?
Returns the first element having the smallest value according to the provided comparator or null if there are no elements.
fun IntBuffer.minWithOrNull(comparator: Comparator<in Int>): Int?
Returns the first element having the smallest value according to the provided comparator or null if there are no elements.
fun LongBuffer.minWithOrNull(comparator: Comparator<in Long>): Long?
Returns the first element having the smallest value according to the provided comparator or null if there are no elements.
fun ShortBuffer.minWithOrNull(comparator: Comparator<in Short>): Short?
Returns the first element having the smallest value according to the provided comparator or null if there are no elements.
none
Link copied to clipboard
fun ByteBuffer.none(): Boolean
Returns true if the buffer has no elements.
fun CharBuffer.none(): Boolean
Returns true if the buffer has no elements.
fun DoubleBuffer.none(): Boolean
Returns true if the buffer has no elements.
fun FloatBuffer.none(): Boolean
Returns true if the buffer has no elements.
fun IntBuffer.none(): Boolean
Returns true if the buffer has no elements.
fun LongBuffer.none(): Boolean
Returns true if the buffer has no elements.
fun ShortBuffer.none(): Boolean
Returns true if the buffer has no elements.
inline fun ByteBuffer.none(predicate: (Byte) -> Boolean): Boolean
Returns true if no elements match the given predicate.
inline fun CharBuffer.none(predicate: (Char) -> Boolean): Boolean
Returns true if no elements match the given predicate.
inline fun DoubleBuffer.none(predicate: (Double) -> Boolean): Boolean
Returns true if no elements match the given predicate.
inline fun FloatBuffer.none(predicate: (Float) -> Boolean): Boolean
Returns true if no elements match the given predicate.
inline fun IntBuffer.none(predicate: (Int) -> Boolean): Boolean
Returns true if no elements match the given predicate.
inline fun LongBuffer.none(predicate: (Long) -> Boolean): Boolean
Returns true if no elements match the given predicate.
inline fun ShortBuffer.none(predicate: (Short) -> Boolean): Boolean
Returns true if no elements match the given predicate.
onEach
Link copied to clipboard
inline fun ByteBuffer.onEach(action: (Byte) -> Unit): ByteBuffer
Performs the given action on each element and returns the array itself afterwards.
inline fun CharBuffer.onEach(action: (Char) -> Unit): CharBuffer
Performs the given action on each element and returns the array itself afterwards.
inline fun DoubleBuffer.onEach(action: (Double) -> Unit): DoubleBuffer
Performs the given action on each element and returns the array itself afterwards.
inline fun FloatBuffer.onEach(action: (Float) -> Unit): FloatBuffer
Performs the given action on each element and returns the array itself afterwards.
inline fun IntBuffer.onEach(action: (Int) -> Unit): IntBuffer
Performs the given action on each element and returns the array itself afterwards.
inline fun LongBuffer.onEach(action: (Long) -> Unit): LongBuffer
Performs the given action on each element and returns the array itself afterwards.
inline fun ShortBuffer.onEach(action: (Short) -> Unit): ShortBuffer
Performs the given action on each element and returns the array itself afterwards.
onEachIndexed
Link copied to clipboard
inline fun ByteBuffer.onEachIndexed(action: (index: Int, Byte) -> Unit): ByteBuffer
Performs the given action on each element, providing sequential index with the element, and returns the array itself afterwards.
inline fun CharBuffer.onEachIndexed(action: (index: Int, Char) -> Unit): CharBuffer
Performs the given action on each element, providing sequential index with the element, and returns the array itself afterwards.
inline fun DoubleBuffer.onEachIndexed(action: (index: Int, Double) -> Unit): DoubleBuffer
Performs the given action on each element, providing sequential index with the element, and returns the array itself afterwards.
inline fun FloatBuffer.onEachIndexed(action: (index: Int, Float) -> Unit): FloatBuffer
Performs the given action on each element, providing sequential index with the element, and returns the array itself afterwards.
inline fun IntBuffer.onEachIndexed(action: (index: Int, Int) -> Unit): IntBuffer
Performs the given action on each element, providing sequential index with the element, and returns the array itself afterwards.
inline fun LongBuffer.onEachIndexed(action: (index: Int, Long) -> Unit): LongBuffer
Performs the given action on each element, providing sequential index with the element, and returns the array itself afterwards.
inline fun ShortBuffer.onEachIndexed(action: (index: Int, Short) -> Unit): ShortBuffer
Performs the given action on each element, providing sequential index with the element, and returns the array itself afterwards.
partition
Link copied to clipboard
inline fun ByteBuffer.partition(predicate: (Byte) -> Boolean): Pair<List<Byte>, List<Byte>>
Splits the original array into pair of lists, where first list contains elements for which predicate yielded true, while second list contains elements for which predicate yielded false.
inline fun CharBuffer.partition(predicate: (Char) -> Boolean): Pair<List<Char>, List<Char>>
Splits the original array into pair of lists, where first list contains elements for which predicate yielded true, while second list contains elements for which predicate yielded false.
inline fun DoubleBuffer.partition(predicate: (Double) -> Boolean): Pair<List<Double>, List<Double>>
Splits the original array into pair of lists, where first list contains elements for which predicate yielded true, while second list contains elements for which predicate yielded false.
inline fun FloatBuffer.partition(predicate: (Float) -> Boolean): Pair<List<Float>, List<Float>>
Splits the original array into pair of lists, where first list contains elements for which predicate yielded true, while second list contains elements for which predicate yielded false.
inline fun IntBuffer.partition(predicate: (Int) -> Boolean): Pair<List<Int>, List<Int>>
Splits the original array into pair of lists, where first list contains elements for which predicate yielded true, while second list contains elements for which predicate yielded false.
inline fun LongBuffer.partition(predicate: (Long) -> Boolean): Pair<List<Long>, List<Long>>
Splits the original array into pair of lists, where first list contains elements for which predicate yielded true, while second list contains elements for which predicate yielded false.
inline fun ShortBuffer.partition(predicate: (Short) -> Boolean): Pair<List<Short>, List<Short>>
Splits the original array into pair of lists, where first list contains elements for which predicate yielded true, while second list contains elements for which predicate yielded false.
random
Link copied to clipboard
inline fun ByteBuffer.random(): Byte
Returns a random element from this array.
inline fun CharBuffer.random(): Char
Returns a random element from this array.
inline fun DoubleBuffer.random(): Double
Returns a random element from this array.
inline fun FloatBuffer.random(): Float
Returns a random element from this array.
inline fun IntBuffer.random(): Int
Returns a random element from this array.
inline fun LongBuffer.random(): Long
Returns a random element from this array.
inline fun ShortBuffer.random(): Short
Returns a random element from this array.
fun ByteBuffer.random(random: Random): Byte
Returns a random element from this array using the specified source of randomness.
fun CharBuffer.random(random: Random): Char
Returns a random element from this array using the specified source of randomness.
fun DoubleBuffer.random(random: Random): Double
Returns a random element from this array using the specified source of randomness.
fun FloatBuffer.random(random: Random): Float
Returns a random element from this array using the specified source of randomness.
fun IntBuffer.random(random: Random): Int
Returns a random element from this array using the specified source of randomness.
fun LongBuffer.random(random: Random): Long
Returns a random element from this array using the specified source of randomness.
fun ShortBuffer.random(random: Random): Short
Returns a random element from this array using the specified source of randomness.
randomOrNull
Link copied to clipboard
inline fun ByteBuffer.randomOrNull(): Byte?
Returns a random element from this array, or null if this array is empty.
inline fun CharBuffer.randomOrNull(): Char?
Returns a random element from this array, or null if this array is empty.
inline fun DoubleBuffer.randomOrNull(): Double?
Returns a random element from this array, or null if this array is empty.
inline fun FloatBuffer.randomOrNull(): Float?
Returns a random element from this array, or null if this array is empty.
inline fun IntBuffer.randomOrNull(): Int?
Returns a random element from this array, or null if this array is empty.
inline fun LongBuffer.randomOrNull(): Long?
Returns a random element from this array, or null if this array is empty.
inline fun ShortBuffer.randomOrNull(): Short?
Returns a random element from this array, or null if this array is empty.
fun ByteBuffer.randomOrNull(random: Random): Byte?
Returns a random element from this array using the specified source of randomness, or null if this array is empty.
fun CharBuffer.randomOrNull(random: Random): Char?
Returns a random element from this array using the specified source of randomness, or null if this array is empty.
fun DoubleBuffer.randomOrNull(random: Random): Double?
Returns a random element from this array using the specified source of randomness, or null if this array is empty.
fun FloatBuffer.randomOrNull(random: Random): Float?
Returns a random element from this array using the specified source of randomness, or null if this array is empty.
fun IntBuffer.randomOrNull(random: Random): Int?
Returns a random element from this array using the specified source of randomness, or null if this array is empty.
fun LongBuffer.randomOrNull(random: Random): Long?
Returns a random element from this array using the specified source of randomness, or null if this array is empty.
fun ShortBuffer.randomOrNull(random: Random): Short?
Returns a random element from this array using the specified source of randomness, or null if this array is empty.
reduce
Link copied to clipboard
inline fun ByteBuffer.reduce(operation: (acc: Byte, Byte) -> Byte): Byte
Accumulates value starting with the first element and applying operation from left to right to current accumulator value and each element.
inline fun DoubleBuffer.reduce(operation: (acc: Double, Double) -> Double): Double
Accumulates value starting with the first element and applying operation from left to right to current accumulator value and each element.
inline fun FloatBuffer.reduce(operation: (acc: Float, Float) -> Float): Float
Accumulates value starting with the first element and applying operation from left to right to current accumulator value and each element.
inline fun IntBuffer.reduce(operation: (acc: Int, Int) -> Int): Int
Accumulates value starting with the first element and applying operation from left to right to current accumulator value and each element.
inline fun LongBuffer.reduce(operation: (acc: Long, Long) -> Long): Long
Accumulates value starting with the first element and applying operation from left to right to current accumulator value and each element.
inline fun ShortBuffer.reduce(operation: (acc: Short, Short) -> Short): Short
Accumulates value starting with the first element and applying operation from left to right to current accumulator value and each element.
inline fun CharArray.reduce(operation: (acc: Char, Char) -> Char): Char
Accumulates value starting with the first element and applying operation from left to right to current accumulator value and each element.
reduceIndexed
Link copied to clipboard
inline fun ByteBuffer.reduceIndexed(operation: (index: Int, acc: Byte, Byte) -> Byte): Byte
Accumulates value starting with the first element and applying operation from left to right to current accumulator value and each element with its index in the original array.
inline fun CharBuffer.reduceIndexed(operation: (index: Int, acc: Char, Char) -> Char): Char
Accumulates value starting with the first element and applying operation from left to right to current accumulator value and each element with its index in the original array.
inline fun DoubleBuffer.reduceIndexed(operation: (index: Int, acc: Double, Double) -> Double): Double
Accumulates value starting with the first element and applying operation from left to right to current accumulator value and each element with its index in the original array.
inline fun FloatBuffer.reduceIndexed(operation: (index: Int, acc: Float, Float) -> Float): Float
Accumulates value starting with the first element and applying operation from left to right to current accumulator value and each element with its index in the original array.
inline fun IntBuffer.reduceIndexed(operation: (index: Int, acc: Int, Int) -> Int): Int
Accumulates value starting with the first element and applying operation from left to right to current accumulator value and each element with its index in the original array.
inline fun LongBuffer.reduceIndexed(operation: (index: Int, acc: Long, Long) -> Long): Long
Accumulates value starting with the first element and applying operation from left to right to current accumulator value and each element with its index in the original array.
inline fun ShortBuffer.reduceIndexed(operation: (index: Int, acc: Short, Short) -> Short): Short
Accumulates value starting with the first element and applying operation from left to right to current accumulator value and each element with its index in the original array.
reduceIndexedOrNull
Link copied to clipboard
inline fun ByteBuffer.reduceIndexedOrNull(operation: (index: Int, acc: Byte, Byte) -> Byte): Byte?
Accumulates value starting with the first element and applying operation from left to right to current accumulator value and each element with its index in the original array.
inline fun CharBuffer.reduceIndexedOrNull(operation: (index: Int, acc: Char, Char) -> Char): Char?
Accumulates value starting with the first element and applying operation from left to right to current accumulator value and each element with its index in the original array.
inline fun DoubleBuffer.reduceIndexedOrNull(operation: (index: Int, acc: Double, Double) -> Double): Double?
Accumulates value starting with the first element and applying operation from left to right to current accumulator value and each element with its index in the original array.
inline fun FloatBuffer.reduceIndexedOrNull(operation: (index: Int, acc: Float, Float) -> Float): Float?
Accumulates value starting with the first element and applying operation from left to right to current accumulator value and each element with its index in the original array.
inline fun IntBuffer.reduceIndexedOrNull(operation: (index: Int, acc: Int, Int) -> Int): Int?
Accumulates value starting with the first element and applying operation from left to right to current accumulator value and each element with its index in the original array.
inline fun LongBuffer.reduceIndexedOrNull(operation: (index: Int, acc: Long, Long) -> Long): Long?
Accumulates value starting with the first element and applying operation from left to right to current accumulator value and each element with its index in the original array.
inline fun ShortBuffer.reduceIndexedOrNull(operation: (index: Int, acc: Short, Short) -> Short): Short?
Accumulates value starting with the first element and applying operation from left to right to current accumulator value and each element with its index in the original array.
reduceOrNull
Link copied to clipboard
inline fun ByteBuffer.reduceOrNull(operation: (acc: Byte, Byte) -> Byte): Byte?
Accumulates value starting with the first element and applying operation from left to right to current accumulator value and each element.
inline fun CharBuffer.reduceOrNull(operation: (acc: Char, Char) -> Char): Char?
Accumulates value starting with the first element and applying operation from left to right to current accumulator value and each element.
inline fun DoubleBuffer.reduceOrNull(operation: (acc: Double, Double) -> Double): Double?
Accumulates value starting with the first element and applying operation from left to right to current accumulator value and each element.
inline fun FloatBuffer.reduceOrNull(operation: (acc: Float, Float) -> Float): Float?
Accumulates value starting with the first element and applying operation from left to right to current accumulator value and each element.
inline fun IntBuffer.reduceOrNull(operation: (acc: Int, Int) -> Int): Int?
Accumulates value starting with the first element and applying operation from left to right to current accumulator value and each element.
inline fun LongBuffer.reduceOrNull(operation: (acc: Long, Long) -> Long): Long?
Accumulates value starting with the first element and applying operation from left to right to current accumulator value and each element.
inline fun ShortBuffer.reduceOrNull(operation: (acc: Short, Short) -> Short): Short?
Accumulates value starting with the first element and applying operation from left to right to current accumulator value and each element.
reduceRight
Link copied to clipboard
inline fun ByteBuffer.reduceRight(operation: (Byte, acc: Byte) -> Byte): Byte
Accumulates value starting with the last element and applying operation from right to left to each element and current accumulator value.
inline fun CharBuffer.reduceRight(operation: (Char, acc: Char) -> Char): Char
Accumulates value starting with the last element and applying operation from right to left to each element and current accumulator value.
inline fun DoubleBuffer.reduceRight(operation: (Double, acc: Double) -> Double): Double
Accumulates value starting with the last element and applying operation from right to left to each element and current accumulator value.
inline fun FloatBuffer.reduceRight(operation: (Float, acc: Float) -> Float): Float
Accumulates value starting with the last element and applying operation from right to left to each element and current accumulator value.
inline fun IntBuffer.reduceRight(operation: (Int, acc: Int) -> Int): Int
Accumulates value starting with the last element and applying operation from right to left to each element and current accumulator value.
inline fun LongBuffer.reduceRight(operation: (Long, acc: Long) -> Long): Long
Accumulates value starting with the last element and applying operation from right to left to each element and current accumulator value.
inline fun ShortBuffer.reduceRight(operation: (Short, acc: Short) -> Short): Short
Accumulates value starting with the last element and applying operation from right to left to each element and current accumulator value.
reduceRightIndexed
Link copied to clipboard
inline fun ByteBuffer.reduceRightIndexed(operation: (index: Int, Byte, acc: Byte) -> Byte): Byte
Accumulates value starting with the last element and applying operation from right to left to each element with its index in the original array and current accumulator value.
inline fun CharBuffer.reduceRightIndexed(operation: (index: Int, Char, acc: Char) -> Char): Char
Accumulates value starting with the last element and applying operation from right to left to each element with its index in the original array and current accumulator value.
inline fun DoubleBuffer.reduceRightIndexed(operation: (index: Int, Double, acc: Double) -> Double): Double
Accumulates value starting with the last element and applying operation from right to left to each element with its index in the original array and current accumulator value.
inline fun FloatBuffer.reduceRightIndexed(operation: (index: Int, Float, acc: Float) -> Float): Float
Accumulates value starting with the last element and applying operation from right to left to each element with its index in the original array and current accumulator value.
inline fun IntBuffer.reduceRightIndexed(operation: (index: Int, Int, acc: Int) -> Int): Int
Accumulates value starting with the last element and applying operation from right to left to each element with its index in the original array and current accumulator value.
inline fun LongBuffer.reduceRightIndexed(operation: (index: Int, Long, acc: Long) -> Long): Long
Accumulates value starting with the last element and applying operation from right to left to each element with its index in the original array and current accumulator value.
inline fun ShortBuffer.reduceRightIndexed(operation: (index: Int, Short, acc: Short) -> Short): Short
Accumulates value starting with the last element and applying operation from right to left to each element with its index in the original array and current accumulator value.
reduceRightIndexedOrNull
Link copied to clipboard
inline fun ByteBuffer.reduceRightIndexedOrNull(operation: (index: Int, Byte, acc: Byte) -> Byte): Byte?
Accumulates value starting with the last element and applying operation from right to left to each element with its index in the original array and current accumulator value.
inline fun CharBuffer.reduceRightIndexedOrNull(operation: (index: Int, Char, acc: Char) -> Char): Char?
Accumulates value starting with the last element and applying operation from right to left to each element with its index in the original array and current accumulator value.
inline fun DoubleBuffer.reduceRightIndexedOrNull(operation: (index: Int, Double, acc: Double) -> Double): Double?
Accumulates value starting with the last element and applying operation from right to left to each element with its index in the original array and current accumulator value.
inline fun FloatBuffer.reduceRightIndexedOrNull(operation: (index: Int, Float, acc: Float) -> Float): Float?
Accumulates value starting with the last element and applying operation from right to left to each element with its index in the original array and current accumulator value.
inline fun IntBuffer.reduceRightIndexedOrNull(operation: (index: Int, Int, acc: Int) -> Int): Int?
Accumulates value starting with the last element and applying operation from right to left to each element with its index in the original array and current accumulator value.
inline fun LongBuffer.reduceRightIndexedOrNull(operation: (index: Int, Long, acc: Long) -> Long): Long?
Accumulates value starting with the last element and applying operation from right to left to each element with its index in the original array and current accumulator value.
inline fun ShortBuffer.reduceRightIndexedOrNull(operation: (index: Int, Short, acc: Short) -> Short): Short?
Accumulates value starting with the last element and applying operation from right to left to each element with its index in the original array and current accumulator value.
reduceRightOrNull
Link copied to clipboard
inline fun ByteBuffer.reduceRightOrNull(operation: (Byte, acc: Byte) -> Byte): Byte?
Accumulates value starting with the last element and applying operation from right to left to each element and current accumulator value.
inline fun CharBuffer.reduceRightOrNull(operation: (Char, acc: Char) -> Char): Char?
Accumulates value starting with the last element and applying operation from right to left to each element and current accumulator value.
inline fun DoubleBuffer.reduceRightOrNull(operation: (Double, acc: Double) -> Double): Double?
Accumulates value starting with the last element and applying operation from right to left to each element and current accumulator value.
inline fun FloatBuffer.reduceRightOrNull(operation: (Float, acc: Float) -> Float): Float?
Accumulates value starting with the last element and applying operation from right to left to each element and current accumulator value.
inline fun IntBuffer.reduceRightOrNull(operation: (Int, acc: Int) -> Int): Int?
Accumulates value starting with the last element and applying operation from right to left to each element and current accumulator value.
inline fun LongBuffer.reduceRightOrNull(operation: (Long, acc: Long) -> Long): Long?
Accumulates value starting with the last element and applying operation from right to left to each element and current accumulator value.
inline fun ShortBuffer.reduceRightOrNull(operation: (Short, acc: Short) -> Short): Short?
Accumulates value starting with the last element and applying operation from right to left to each element and current accumulator value.
reverse
Link copied to clipboard
fun ByteBuffer.reverse()
Reverses elements in the buffer in-place.
fun CharBuffer.reverse()
Reverses elements in the buffer in-place.
fun DoubleBuffer.reverse()
Reverses elements in the buffer in-place.
fun FloatBuffer.reverse()
Reverses elements in the buffer in-place.
fun IntBuffer.reverse()
Reverses elements in the buffer in-place.
fun LongBuffer.reverse()
Reverses elements in the buffer in-place.
fun ShortBuffer.reverse()
Reverses elements in the buffer in-place.
fun ByteBuffer.reverse(fromIndex: Int, toIndex: Int)
Reverses elements of the array in the specified range in-place.
fun CharBuffer.reverse(fromIndex: Int, toIndex: Int)
Reverses elements of the array in the specified range in-place.
fun DoubleBuffer.reverse(fromIndex: Int, toIndex: Int)
Reverses elements of the array in the specified range in-place.
fun FloatBuffer.reverse(fromIndex: Int, toIndex: Int)
Reverses elements of the array in the specified range in-place.
fun IntBuffer.reverse(fromIndex: Int, toIndex: Int)
Reverses elements of the array in the specified range in-place.
fun LongBuffer.reverse(fromIndex: Int, toIndex: Int)
Reverses elements of the array in the specified range in-place.
fun ShortBuffer.reverse(fromIndex: Int, toIndex: Int)
Reverses elements of the array in the specified range in-place.
reversed
Link copied to clipboard
fun ByteBuffer.reversed(): List<Byte>
Returns a list with elements in reversed order.
fun CharBuffer.reversed(): List<Char>
Returns a list with elements in reversed order.
fun DoubleBuffer.reversed(): List<Double>
Returns a list with elements in reversed order.
fun FloatBuffer.reversed(): List<Float>
Returns a list with elements in reversed order.
fun IntBuffer.reversed(): List<Int>
Returns a list with elements in reversed order.
fun LongBuffer.reversed(): List<Long>
Returns a list with elements in reversed order.
fun ShortBuffer.reversed(): List<Short>
Returns a list with elements in reversed order.
reversedArray
Link copied to clipboard
fun ByteBuffer.reversedArray(): ByteArray
Returns an array with elements of this array in reversed order.
fun CharBuffer.reversedArray(): CharArray
Returns an array with elements of this array in reversed order.
fun DoubleBuffer.reversedArray(): DoubleArray
Returns an array with elements of this array in reversed order.
fun FloatBuffer.reversedArray(): FloatArray
Returns an array with elements of this array in reversed order.
fun IntBuffer.reversedArray(): IntArray
Returns an array with elements of this array in reversed order.
fun LongBuffer.reversedArray(): LongArray
Returns an array with elements of this array in reversed order.
fun ShortBuffer.reversedArray(): ShortArray
Returns an array with elements of this array in reversed order.
runningFold
Link copied to clipboard
inline fun <R> ByteBuffer.runningFold(initial: R, operation: (R, Byte) -> R): List<R>
Returns a list containing successive accumulation values generated by applying operation from left to right to each element and current accumulator value that starts with initial value.
inline fun <R> CharBuffer.runningFold(initial: R, operation: (R, Char) -> R): List<R>
Returns a list containing successive accumulation values generated by applying operation from left to right to each element and current accumulator value that starts with initial value.
inline fun <R> DoubleBuffer.runningFold(initial: R, operation: (R, Double) -> R): List<R>
Returns a list containing successive accumulation values generated by applying operation from left to right to each element and current accumulator value that starts with initial value.
inline fun <R> FloatBuffer.runningFold(initial: R, operation: (R, Float) -> R): List<R>
Returns a list containing successive accumulation values generated by applying operation from left to right to each element and current accumulator value that starts with initial value.
inline fun <R> IntBuffer.runningFold(initial: R, operation: (R, Int) -> R): List<R>
Returns a list containing successive accumulation values generated by applying operation from left to right to each element and current accumulator value that starts with initial value.
inline fun <R> LongBuffer.runningFold(initial: R, operation: (R, Long) -> R): List<R>
Returns a list containing successive accumulation values generated by applying operation from left to right to each element and current accumulator value that starts with initial value.
inline fun <R> ShortBuffer.runningFold(initial: R, operation: (R, Short) -> R): List<R>
Returns a list containing successive accumulation values generated by applying operation from left to right to each element and current accumulator value that starts with initial value.
runningFoldIndexed
Link copied to clipboard
inline fun <R> ByteBuffer.runningFoldIndexed(initial: R, operation: (index: Int, R, Byte) -> R): List<R>
Returns a list containing successive accumulation values generated by applying operation from left to right to each element, its index in the original array and current accumulator value that starts with initial value.
inline fun <R> CharBuffer.runningFoldIndexed(initial: R, operation: (index: Int, R, Char) -> R): List<R>
Returns a list containing successive accumulation values generated by applying operation from left to right to each element, its index in the original array and current accumulator value that starts with initial value.
inline fun <R> DoubleBuffer.runningFoldIndexed(initial: R, operation: (index: Int, R, Double) -> R): List<R>
Returns a list containing successive accumulation values generated by applying operation from left to right to each element, its index in the original array and current accumulator value that starts with initial value.
inline fun <R> FloatBuffer.runningFoldIndexed(initial: R, operation: (index: Int, R, Float) -> R): List<R>
Returns a list containing successive accumulation values generated by applying operation from left to right to each element, its index in the original array and current accumulator value that starts with initial value.
inline fun <R> IntBuffer.runningFoldIndexed(initial: R, operation: (index: Int, R, Int) -> R): List<R>
Returns a list containing successive accumulation values generated by applying operation from left to right to each element, its index in the original array and current accumulator value that starts with initial value.
inline fun <R> LongBuffer.runningFoldIndexed(initial: R, operation: (index: Int, R, Long) -> R): List<R>
Returns a list containing successive accumulation values generated by applying operation from left to right to each element, its index in the original array and current accumulator value that starts with initial value.
inline fun <R> ShortBuffer.runningFoldIndexed(initial: R, operation: (index: Int, R, Short) -> R): List<R>
Returns a list containing successive accumulation values generated by applying operation from left to right to each element, its index in the original array and current accumulator value that starts with initial value.
runningReduce
Link copied to clipboard
inline fun ByteBuffer.runningReduce(operation: (acc: Byte, Byte) -> Byte): List<Byte>
Returns a list containing successive accumulation values generated by applying operation from left to right to each element and current accumulator value that starts with the first element of this array.
inline fun CharBuffer.runningReduce(operation: (acc: Char, Char) -> Char): List<Char>
Returns a list containing successive accumulation values generated by applying operation from left to right to each element and current accumulator value that starts with the first element of this array.
inline fun DoubleBuffer.runningReduce(operation: (acc: Double, Double) -> Double): List<Double>
Returns a list containing successive accumulation values generated by applying operation from left to right to each element and current accumulator value that starts with the first element of this array.
inline fun FloatBuffer.runningReduce(operation: (acc: Float, Float) -> Float): List<Float>
Returns a list containing successive accumulation values generated by applying operation from left to right to each element and current accumulator value that starts with the first element of this array.
inline fun IntBuffer.runningReduce(operation: (acc: Int, Int) -> Int): List<Int>
Returns a list containing successive accumulation values generated by applying operation from left to right to each element and current accumulator value that starts with the first element of this array.
inline fun LongBuffer.runningReduce(operation: (acc: Long, Long) -> Long): List<Long>
Returns a list containing successive accumulation values generated by applying operation from left to right to each element and current accumulator value that starts with the first element of this array.
inline fun ShortBuffer.runningReduce(operation: (acc: Short, Short) -> Short): List<Short>
Returns a list containing successive accumulation values generated by applying operation from left to right to each element and current accumulator value that starts with the first element of this array.
runningReduceIndexed
Link copied to clipboard
inline fun ByteBuffer.runningReduceIndexed(operation: (index: Int, acc: Byte, Byte) -> Byte): List<Byte>
Returns a list containing successive accumulation values generated by applying operation from left to right to each element, its index in the original array and current accumulator value that starts with the first element of this array.
inline fun CharBuffer.runningReduceIndexed(operation: (index: Int, acc: Char, Char) -> Char): List<Char>
Returns a list containing successive accumulation values generated by applying operation from left to right to each element, its index in the original array and current accumulator value that starts with the first element of this array.
inline fun DoubleBuffer.runningReduceIndexed(operation: (index: Int, acc: Double, Double) -> Double): List<Double>
Returns a list containing successive accumulation values generated by applying operation from left to right to each element, its index in the original array and current accumulator value that starts with the first element of this array.
inline fun FloatBuffer.runningReduceIndexed(operation: (index: Int, acc: Float, Float) -> Float): List<Float>
Returns a list containing successive accumulation values generated by applying operation from left to right to each element, its index in the original array and current accumulator value that starts with the first element of this array.
inline fun IntBuffer.runningReduceIndexed(operation: (index: Int, acc: Int, Int) -> Int): List<Int>
Returns a list containing successive accumulation values generated by applying operation from left to right to each element, its index in the original array and current accumulator value that starts with the first element of this array.
inline fun LongBuffer.runningReduceIndexed(operation: (index: Int, acc: Long, Long) -> Long): List<Long>
Returns a list containing successive accumulation values generated by applying operation from left to right to each element, its index in the original array and current accumulator value that starts with the first element of this array.
inline fun ShortBuffer.runningReduceIndexed(operation: (index: Int, acc: Short, Short) -> Short): List<Short>
Returns a list containing successive accumulation values generated by applying operation from left to right to each element, its index in the original array and current accumulator value that starts with the first element of this array.
scan
Link copied to clipboard
inline fun <R> ByteBuffer.scan(initial: R, operation: (R, Byte) -> R): List<R>
Returns a list containing successive accumulation values generated by applying operation from left to right to each element and current accumulator value that starts with initial value.
inline fun <R> CharBuffer.scan(initial: R, operation: (R, Char) -> R): List<R>
Returns a list containing successive accumulation values generated by applying operation from left to right to each element and current accumulator value that starts with initial value.
inline fun <R> DoubleBuffer.scan(initial: R, operation: (R, Double) -> R): List<R>
Returns a list containing successive accumulation values generated by applying operation from left to right to each element and current accumulator value that starts with initial value.
inline fun <R> FloatBuffer.scan(initial: R, operation: (R, Float) -> R): List<R>
Returns a list containing successive accumulation values generated by applying operation from left to right to each element and current accumulator value that starts with initial value.
inline fun <R> IntBuffer.scan(initial: R, operation: (R, Int) -> R): List<R>
Returns a list containing successive accumulation values generated by applying operation from left to right to each element and current accumulator value that starts with initial value.
inline fun <R> LongBuffer.scan(initial: R, operation: (R, Long) -> R): List<R>
Returns a list containing successive accumulation values generated by applying operation from left to right to each element and current accumulator value that starts with initial value.
inline fun <R> ShortBuffer.scan(initial: R, operation: (R, Short) -> R): List<R>
Returns a list containing successive accumulation values generated by applying operation from left to right to each element and current accumulator value that starts with initial value.
scanIndexed
Link copied to clipboard
inline fun <R> ByteBuffer.scanIndexed(initial: R, operation: (index: Int, R, Byte) -> R): List<R>
Returns a list containing successive accumulation values generated by applying operation from left to right to each element, its index in the original array and current accumulator value that starts with initial value.
inline fun <R> CharBuffer.scanIndexed(initial: R, operation: (index: Int, R, Char) -> R): List<R>
Returns a list containing successive accumulation values generated by applying operation from left to right to each element, its index in the original array and current accumulator value that starts with initial value.
inline fun <R> DoubleBuffer.scanIndexed(initial: R, operation: (index: Int, R, Double) -> R): List<R>
Returns a list containing successive accumulation values generated by applying operation from left to right to each element, its index in the original array and current accumulator value that starts with initial value.
inline fun <R> FloatBuffer.scanIndexed(initial: R, operation: (index: Int, R, Float) -> R): List<R>
Returns a list containing successive accumulation values generated by applying operation from left to right to each element, its index in the original array and current accumulator value that starts with initial value.
inline fun <R> IntBuffer.scanIndexed(initial: R, operation: (index: Int, R, Int) -> R): List<R>
Returns a list containing successive accumulation values generated by applying operation from left to right to each element, its index in the original array and current accumulator value that starts with initial value.
inline fun <R> LongBuffer.scanIndexed(initial: R, operation: (index: Int, R, Long) -> R): List<R>
Returns a list containing successive accumulation values generated by applying operation from left to right to each element, its index in the original array and current accumulator value that starts with initial value.
inline fun <R> ShortBuffer.scanIndexed(initial: R, operation: (index: Int, R, Short) -> R): List<R>
Returns a list containing successive accumulation values generated by applying operation from left to right to each element, its index in the original array and current accumulator value that starts with initial value.
shuffle
Link copied to clipboard
fun ByteBuffer.shuffle()
Randomly shuffles elements in this array in-place.
fun CharBuffer.shuffle()
Randomly shuffles elements in this array in-place.
fun DoubleBuffer.shuffle()
Randomly shuffles elements in this array in-place.
fun FloatBuffer.shuffle()
Randomly shuffles elements in this array in-place.
fun IntBuffer.shuffle()
Randomly shuffles elements in this array in-place.
fun LongBuffer.shuffle()
Randomly shuffles elements in this array in-place.
fun ShortBuffer.shuffle()
Randomly shuffles elements in this array in-place.
fun ByteBuffer.shuffle(random: Random)
Randomly shuffles elements in this array in-place using the specified random instance as the source of randomness.
fun CharBuffer.shuffle(random: Random)
Randomly shuffles elements in this array in-place using the specified random instance as the source of randomness.
fun DoubleBuffer.shuffle(random: Random)
Randomly shuffles elements in this array in-place using the specified random instance as the source of randomness.
fun FloatBuffer.shuffle(random: Random)
Randomly shuffles elements in this array in-place using the specified random instance as the source of randomness.
fun IntBuffer.shuffle(random: Random)
Randomly shuffles elements in this array in-place using the specified random instance as the source of randomness.
fun LongBuffer.shuffle(random: Random)
Randomly shuffles elements in this array in-place using the specified random instance as the source of randomness.
fun ShortBuffer.shuffle(random: Random)
Randomly shuffles elements in this array in-place using the specified random instance as the source of randomness.
single
Link copied to clipboard
fun ByteBuffer.single(): Byte
Returns the single element, or throws an exception if the array is empty or has more than one element.
fun CharBuffer.single(): Char
Returns the single element, or throws an exception if the array is empty or has more than one element.
fun DoubleBuffer.single(): Double
Returns the single element, or throws an exception if the array is empty or has more than one element.
fun FloatBuffer.single(): Float
Returns the single element, or throws an exception if the array is empty or has more than one element.
fun IntBuffer.single(): Int
Returns the single element, or throws an exception if the array is empty or has more than one element.
fun LongBuffer.single(): Long
Returns the single element, or throws an exception if the array is empty or has more than one element.
fun ShortBuffer.single(): Short
Returns the single element, or throws an exception if the array is empty or has more than one element.
inline fun ByteBuffer.single(predicate: (Byte) -> Boolean): Byte
Returns the single element matching the given predicate, or throws exception if there is no or more than one matching element.
inline fun CharBuffer.single(predicate: (Char) -> Boolean): Char
Returns the single element matching the given predicate, or throws exception if there is no or more than one matching element.
inline fun DoubleBuffer.single(predicate: (Double) -> Boolean): Double
Returns the single element matching the given predicate, or throws exception if there is no or more than one matching element.
inline fun FloatBuffer.single(predicate: (Float) -> Boolean): Float
Returns the single element matching the given predicate, or throws exception if there is no or more than one matching element.
inline fun IntBuffer.single(predicate: (Int) -> Boolean): Int
Returns the single element matching the given predicate, or throws exception if there is no or more than one matching element.
inline fun LongBuffer.single(predicate: (Long) -> Boolean): Long
Returns the single element matching the given predicate, or throws exception if there is no or more than one matching element.
inline fun ShortBuffer.single(predicate: (Short) -> Boolean): Short
Returns the single element matching the given predicate, or throws exception if there is no or more than one matching element.
singleOrNull
Link copied to clipboard
fun ByteBuffer.singleOrNull(): Byte?
Returns single element, or null if the array is empty or has more than one element.
fun CharBuffer.singleOrNull(): Char?
Returns single element, or null if the array is empty or has more than one element.
fun DoubleBuffer.singleOrNull(): Double?
Returns single element, or null if the array is empty or has more than one element.
fun FloatBuffer.singleOrNull(): Float?
Returns single element, or null if the array is empty or has more than one element.
fun IntBuffer.singleOrNull(): Int?
Returns single element, or null if the array is empty or has more than one element.
fun LongBuffer.singleOrNull(): Long?
Returns single element, or null if the array is empty or has more than one element.
fun ShortBuffer.singleOrNull(): Short?
Returns single element, or null if the array is empty or has more than one element.
inline fun ByteBuffer.singleOrNull(predicate: (Byte) -> Boolean): Byte?
Returns the single element matching the given predicate, or null if element was not found or more than one element was found.
inline fun CharBuffer.singleOrNull(predicate: (Char) -> Boolean): Char?
Returns the single element matching the given predicate, or null if element was not found or more than one element was found.
inline fun DoubleBuffer.singleOrNull(predicate: (Double) -> Boolean): Double?
Returns the single element matching the given predicate, or null if element was not found or more than one element was found.
inline fun FloatBuffer.singleOrNull(predicate: (Float) -> Boolean): Float?
Returns the single element matching the given predicate, or null if element was not found or more than one element was found.
inline fun IntBuffer.singleOrNull(predicate: (Int) -> Boolean): Int?
Returns the single element matching the given predicate, or null if element was not found or more than one element was found.
inline fun LongBuffer.singleOrNull(predicate: (Long) -> Boolean): Long?
Returns the single element matching the given predicate, or null if element was not found or more than one element was found.
inline fun ShortBuffer.singleOrNull(predicate: (Short) -> Boolean): Short?
Returns the single element matching the given predicate, or null if element was not found or more than one element was found.
slice
Link copied to clipboard
fun ByteBuffer.slice(indices: IntRange): ByteBuffer
Returns a list containing elements at indices in the specified indices range.
fun CharBuffer.slice(indices: IntRange): CharBuffer
Returns a list containing elements at indices in the specified indices range.
fun DoubleBuffer.slice(indices: IntRange): DoubleBuffer
Returns a list containing elements at indices in the specified indices range.
fun FloatBuffer.slice(indices: IntRange): FloatBuffer
Returns a list containing elements at indices in the specified indices range.
fun IntBuffer.slice(indices: IntRange): IntBuffer
Returns a list containing elements at indices in the specified indices range.
fun LongBuffer.slice(indices: IntRange): LongBuffer
Returns a list containing elements at indices in the specified indices range.
fun ShortBuffer.slice(indices: IntRange): ShortBuffer
Returns a list containing elements at indices in the specified indices range.
sliceArray
Link copied to clipboard
fun ByteBuffer.sliceArray(indices: Collection<Int>): ByteArray
rray containing elements of this array at specified indices.
fun ByteBuffer.sliceArray(indices: IntRange): ByteBuffer
Returns an array containing elements at indices in the specified indices range.
fun CharBuffer.sliceArray(indices: Collection<Int>): CharArray
Returns an array containing elements of this array at specified indices.
fun CharBuffer.sliceArray(indices: IntRange): CharBuffer
Returns an array containing elements at indices in the specified indices range.
fun DoubleBuffer.sliceArray(indices: Collection<Int>): DoubleArray
Returns an array containing elements of this array at specified indices.
fun DoubleBuffer.sliceArray(indices: IntRange): DoubleBuffer
Returns an array containing elements at indices in the specified indices range.
fun FloatBuffer.sliceArray(indices: Collection<Int>): FloatArray
Returns an array containing elements of this array at specified indices.
fun FloatBuffer.sliceArray(indices: IntRange): FloatBuffer
Returns an array containing elements at indices in the specified indices range.
fun IntBuffer.sliceArray(indices: Collection<Int>): IntArray
Returns an array containing elements of this array at specified indices.
fun IntBuffer.sliceArray(indices: IntRange): IntBuffer
Returns an array containing elements at indices in the specified indices range.
fun LongBuffer.sliceArray(indices: Collection<Int>): LongArray
Returns an array containing elements of this array at specified indices.
fun LongBuffer.sliceArray(indices: IntRange): LongBuffer
Returns an array containing elements at indices in the specified indices range.
fun ShortBuffer.sliceArray(indices: Collection<Int>): ShortArray
Returns an array containing elements of this array at specified indices.
fun ShortBuffer.sliceArray(indices: IntRange): ShortBuffer
Returns an array containing elements at indices in the specified indices range.
sort
Link copied to clipboard
fun ByteBuffer.sort()
Sorts the array in-place.
fun CharBuffer.sort()
Sorts the array in-place.
fun DoubleBuffer.sort()
Sorts the array in-place.
fun FloatBuffer.sort()
Sorts the array in-place.
fun IntBuffer.sort()
Sorts the array in-place.
fun LongBuffer.sort()
Sorts the array in-place.
fun ShortBuffer.sort()
Sorts the array in-place.
fun ByteBuffer.sort(fromIndex: Int = 0, toIndex: Int = lim)
Sorts a range in the array in-place.
fun CharBuffer.sort(fromIndex: Int = 0, toIndex: Int = lim)
Sorts a range in the array in-place.
fun DoubleBuffer.sort(fromIndex: Int = 0, toIndex: Int = lim)
Sorts a range in the array in-place.
fun FloatBuffer.sort(fromIndex: Int = 0, toIndex: Int = lim)
Sorts a range in the array in-place.
fun IntBuffer.sort(fromIndex: Int = 0, toIndex: Int = lim)
Sorts a range in the array in-place.
fun LongBuffer.sort(fromIndex: Int = 0, toIndex: Int = lim)
Sorts a range in the array in-place.
fun ShortBuffer.sort(fromIndex: Int = 0, toIndex: Int = lim)
Sorts a range in the array in-place.
sortDescending
Link copied to clipboard
fun ByteBuffer.sortDescending()
Sorts elements in the array in-place descending according to their natural sort order.
fun CharBuffer.sortDescending()
Sorts elements in the array in-place descending according to their natural sort order.
fun DoubleBuffer.sortDescending()
Sorts elements in the array in-place descending according to their natural sort order.
fun FloatBuffer.sortDescending()
Sorts elements in the array in-place descending according to their natural sort order.
fun IntBuffer.sortDescending()
Sorts elements in the array in-place descending according to their natural sort order.
fun LongBuffer.sortDescending()
Sorts elements in the array in-place descending according to their natural sort order.
fun ShortBuffer.sortDescending()
Sorts elements in the array in-place descending according to their natural sort order.
fun ByteArray.sortDescending(fromIndex: Int, toIndex: Int)
Sorts elements of the array in the specified range in-place.
fun CharArray.sortDescending(fromIndex: Int, toIndex: Int)
Sorts elements of the array in the specified range in-place.
fun DoubleArray.sortDescending(fromIndex: Int, toIndex: Int)
Sorts elements of the array in the specified range in-place.
fun FloatArray.sortDescending(fromIndex: Int, toIndex: Int)
Sorts elements of the array in the specified range in-place.
fun IntArray.sortDescending(fromIndex: Int, toIndex: Int)
Sorts elements of the array in the specified range in-place.
fun LongArray.sortDescending(fromIndex: Int, toIndex: Int)
Sorts elements of the array in the specified range in-place.
fun ShortArray.sortDescending(fromIndex: Int, toIndex: Int)
Sorts elements of the array in the specified range in-place.
sorted
Link copied to clipboard
fun ByteBuffer.sorted(): List<Byte>
Returns a list of all elements sorted according to their natural sort order.
fun CharBuffer.sorted(): List<Char>
Returns a list of all elements sorted according to their natural sort order.
fun DoubleBuffer.sorted(): List<Double>
Returns a list of all elements sorted according to their natural sort order.
fun FloatBuffer.sorted(): List<Float>
Returns a list of all elements sorted according to their natural sort order.
fun IntBuffer.sorted(): List<Int>
Returns a list of all elements sorted according to their natural sort order.
fun LongBuffer.sorted(): List<Long>
Returns a list of all elements sorted according to their natural sort order.
fun ShortBuffer.sorted(): List<Short>
Returns a list of all elements sorted according to their natural sort order.
sortedArray
Link copied to clipboard
fun ByteBuffer.sortedArray(): ByteArray
Returns an array with all elements of this array sorted according to their natural sort order.
fun CharBuffer.sortedArray(): CharArray
Returns an array with all elements of this array sorted according to their natural sort order.
fun DoubleBuffer.sortedArray(): DoubleArray
Returns an array with all elements of this array sorted according to their natural sort order.
fun FloatBuffer.sortedArray(): FloatArray
Returns an array with all elements of this array sorted according to their natural sort order.
fun IntBuffer.sortedArray(): IntArray
Returns an array with all elements of this array sorted according to their natural sort order.
fun LongBuffer.sortedArray(): LongArray
Returns an array with all elements of this array sorted according to their natural sort order.
fun ShortBuffer.sortedArray(): ShortArray
Returns an array with all elements of this array sorted according to their natural sort order.
sortedArrayDescending
Link copied to clipboard
fun ByteBuffer.sortedArrayDescending(): ByteArray
Returns an array with all elements of this array sorted descending according to their natural sort order.
fun CharBuffer.sortedArrayDescending(): CharArray
Returns an array with all elements of this array sorted descending according to their natural sort order.
fun DoubleBuffer.sortedArrayDescending(): DoubleArray
Returns an array with all elements of this array sorted descending according to their natural sort order.
fun FloatBuffer.sortedArrayDescending(): FloatArray
Returns an array with all elements of this array sorted descending according to their natural sort order.
fun IntBuffer.sortedArrayDescending(): IntArray
Returns an array with all elements of this array sorted descending according to their natural sort order.
fun LongBuffer.sortedArrayDescending(): LongArray
Returns an array with all elements of this array sorted descending according to their natural sort order.
fun ShortBuffer.sortedArrayDescending(): ShortArray
Returns an array with all elements of this array sorted descending according to their natural sort order.
sortedBy
Link copied to clipboard
inline fun <R : Comparable<R>> ByteBuffer.sortedBy(crossinline selector: (Byte) -> R?): List<Byte>
Returns a list of all elements sorted according to natural sort order of the value returned by specified selector function.
inline fun <R : Comparable<R>> CharBuffer.sortedBy(crossinline selector: (Char) -> R?): List<Char>
Returns a list of all elements sorted according to natural sort order of the value returned by specified selector function.
inline fun <R : Comparable<R>> DoubleBuffer.sortedBy(crossinline selector: (Double) -> R?): List<Double>
Returns a list of all elements sorted according to natural sort order of the value returned by specified selector function.
inline fun <R : Comparable<R>> FloatBuffer.sortedBy(crossinline selector: (Float) -> R?): List<Float>
Returns a list of all elements sorted according to natural sort order of the value returned by specified selector function.
inline fun <R : Comparable<R>> IntBuffer.sortedBy(crossinline selector: (Int) -> R?): List<Int>
Returns a list of all elements sorted according to natural sort order of the value returned by specified selector function.
inline fun <R : Comparable<R>> LongBuffer.sortedBy(crossinline selector: (Long) -> R?): List<Long>
Returns a list of all elements sorted according to natural sort order of the value returned by specified selector function.
inline fun <R : Comparable<R>> ShortBuffer.sortedBy(crossinline selector: (Short) -> R?): List<Short>
Returns a list of all elements sorted according to natural sort order of the value returned by specified selector function.
sortedByDescending
Link copied to clipboard
inline fun <R : Comparable<R>> ByteBuffer.sortedByDescending(crossinline selector: (Byte) -> R?): List<Byte>
Returns a list of all elements sorted descending according to natural sort order of the value returned by specified selector function.
inline fun <R : Comparable<R>> CharBuffer.sortedByDescending(crossinline selector: (Char) -> R?): List<Char>
Returns a list of all elements sorted descending according to natural sort order of the value returned by specified selector function.
inline fun <R : Comparable<R>> DoubleBuffer.sortedByDescending(crossinline selector: (Double) -> R?): List<Double>
Returns a list of all elements sorted descending according to natural sort order of the value returned by specified selector function.
inline fun <R : Comparable<R>> FloatBuffer.sortedByDescending(crossinline selector: (Float) -> R?): List<Float>
Returns a list of all elements sorted descending according to natural sort order of the value returned by specified selector function.
inline fun <R : Comparable<R>> IntBuffer.sortedByDescending(crossinline selector: (Int) -> R?): List<Int>
Returns a list of all elements sorted descending according to natural sort order of the value returned by specified selector function.
inline fun <R : Comparable<R>> LongBuffer.sortedByDescending(crossinline selector: (Long) -> R?): List<Long>
Returns a list of all elements sorted descending according to natural sort order of the value returned by specified selector function.
inline fun <R : Comparable<R>> ShortBuffer.sortedByDescending(crossinline selector: (Short) -> R?): List<Short>
Returns a list of all elements sorted descending according to natural sort order of the value returned by specified selector function.
sortedDescending
Link copied to clipboard
fun ByteBuffer.sortedDescending(): List<Byte>
Returns a list of all elements sorted descending according to their natural sort order.
fun CharBuffer.sortedDescending(): List<Char>
Returns a list of all elements sorted descending according to their natural sort order.
fun DoubleBuffer.sortedDescending(): List<Double>
Returns a list of all elements sorted descending according to their natural sort order.
fun FloatBuffer.sortedDescending(): List<Float>
Returns a list of all elements sorted descending according to their natural sort order.
fun IntBuffer.sortedDescending(): List<Int>
Returns a list of all elements sorted descending according to their natural sort order.
fun LongBuffer.sortedDescending(): List<Long>
Returns a list of all elements sorted descending according to their natural sort order.
fun ShortBuffer.sortedDescending(): List<Short>
Returns a list of all elements sorted descending according to their natural sort order.
sortedWith
Link copied to clipboard
fun ByteBuffer.sortedWith(comparator: Comparator<in Byte>): List<Byte>
Returns a list of all elements sorted according to the specified comparator.
fun CharBuffer.sortedWith(comparator: Comparator<in Char>): List<Char>
Returns a list of all elements sorted according to the specified comparator.
fun DoubleBuffer.sortedWith(comparator: Comparator<in Double>): List<Double>
Returns a list of all elements sorted according to the specified comparator.
fun FloatBuffer.sortedWith(comparator: Comparator<in Float>): List<Float>
Returns a list of all elements sorted according to the specified comparator.
fun IntBuffer.sortedWith(comparator: Comparator<in Int>): List<Int>
Returns a list of all elements sorted according to the specified comparator.
fun LongBuffer.sortedWith(comparator: Comparator<in Long>): List<Long>
Returns a list of all elements sorted according to the specified comparator.
fun ShortBuffer.sortedWith(comparator: Comparator<in Short>): List<Short>
Returns a list of all elements sorted according to the specified comparator.
subtract
Link copied to clipboard
infix fun ByteBuffer.subtract(other: Iterable<Byte>): Set<Byte>
Returns a set containing all elements that are contained by this array and not contained by the specified collection.
infix fun CharBuffer.subtract(other: Iterable<Char>): Set<Char>
Returns a set containing all elements that are contained by this array and not contained by the specified collection.
infix fun DoubleBuffer.subtract(other: Iterable<Double>): Set<Double>
Returns a set containing all elements that are contained by this array and not contained by the specified collection.
infix fun FloatBuffer.subtract(other: Iterable<Float>): Set<Float>
Returns a set containing all elements that are contained by this array and not contained by the specified collection.
infix fun IntBuffer.subtract(other: Iterable<Int>): Set<Int>
Returns a set containing all elements that are contained by this array and not contained by the specified collection.
infix fun LongBuffer.subtract(other: Iterable<Long>): Set<Long>
Returns a set containing all elements that are contained by this array and not contained by the specified collection.
infix fun ShortBuffer.subtract(other: Iterable<Short>): Set<Short>
Returns a set containing all elements that are contained by this array and not contained by the specified collection.
sum
Link copied to clipboard
fun ByteBuffer.sum(): Int
Returns the sum of all elements in the buffer.
fun DoubleBuffer.sum(): Double
Returns the sum of all elements in the buffer.
fun FloatBuffer.sum(): Float
Returns the sum of all elements in the buffer.
fun IntBuffer.sum(): Int
Returns the sum of all elements in the buffer.
fun LongBuffer.sum(): Long
Returns the sum of all elements in the buffer.
fun ShortBuffer.sum(): Int
Returns the sum of all elements in the buffer.
sumBy
Link copied to clipboard
inline fun ByteBuffer.sumBy(selector: (Byte) -> Int): Int
Returns the sum of all values produced by selector function applied to each element in the buffer.
inline fun CharBuffer.sumBy(selector: (Char) -> Int): Int
Returns the sum of all values produced by selector function applied to each element in the buffer.
inline fun DoubleBuffer.sumBy(selector: (Double) -> Int): Int
Returns the sum of all values produced by selector function applied to each element in the buffer.
inline fun FloatBuffer.sumBy(selector: (Float) -> Int): Int
Returns the sum of all values produced by selector function applied to each element in the buffer.
inline fun IntBuffer.sumBy(selector: (Int) -> Int): Int
Returns the sum of all values produced by selector function applied to each element in the buffer.
inline fun LongBuffer.sumBy(selector: (Long) -> Int): Int
Returns the sum of all values produced by selector function applied to each element in the buffer.
inline fun ShortBuffer.sumBy(selector: (Short) -> Int): Int
Returns the sum of all values produced by selector function applied to each element in the buffer.
sumByDouble
Link copied to clipboard
inline fun ByteBuffer.sumByDouble(selector: (Byte) -> Double): Double
Returns the sum of all values produced by selector function applied to each element in the array.
inline fun CharBuffer.sumByDouble(selector: (Char) -> Double): Double
Returns the sum of all values produced by selector function applied to each element in the array.
inline fun DoubleBuffer.sumByDouble(selector: (Double) -> Double): Double
Returns the sum of all values produced by selector function applied to each element in the array.
inline fun FloatBuffer.sumByDouble(selector: (Float) -> Double): Double
Returns the sum of all values produced by selector function applied to each element in the array.
inline fun IntBuffer.sumByDouble(selector: (Int) -> Double): Double
Returns the sum of all values produced by selector function applied to each element in the array.
inline fun LongBuffer.sumByDouble(selector: (Long) -> Double): Double
Returns the sum of all values produced by selector function applied to each element in the array.
inline fun ShortBuffer.sumByDouble(selector: (Short) -> Double): Double
Returns the sum of all values produced by selector function applied to each element in the array.
sumOf
Link copied to clipboard
@JvmName(name = "sumOfDouble")
inline fun ByteBuffer.sumOf(selector: (Byte) -> Double): Double
Returns the sum of all values produced by selector function applied to each element in the array.
@JvmName(name = "sumOfInt")
inline fun ByteBuffer.sumOf(selector: (Byte) -> Int): Int
Returns the sum of all values produced by selector function applied to each element in the array.
@JvmName(name = "sumOfLong")
inline fun ByteBuffer.sumOf(selector: (Byte) -> Long): Long
Returns the sum of all values produced by selector function applied to each element in the array.
@JvmName(name = "sumOfUInt")
inline fun ByteBuffer.sumOf(selector: (Byte) -> UInt): UInt
Returns the sum of all values produced by selector function applied to each element in the array.
@JvmName(name = "sumOfULong")
inline fun ByteBuffer.sumOf(selector: (Byte) -> ULong): ULong
Returns the sum of all values produced by selector function applied to each element in the array.
@JvmName(name = "sumOfDouble")
inline fun CharBuffer.sumOf(selector: (Char) -> Double): Double
Returns the sum of all values produced by selector function applied to each element in the array.
@JvmName(name = "sumOfInt")
inline fun CharBuffer.sumOf(selector: (Char) -> Int): Int
Returns the sum of all values produced by selector function applied to each element in the array.
@JvmName(name = "sumOfLong")
inline fun CharBuffer.sumOf(selector: (Char) -> Long): Long
Returns the sum of all values produced by selector function applied to each element in the array.
@JvmName(name = "sumOfUInt")
inline fun CharBuffer.sumOf(selector: (Char) -> UInt): UInt
Returns the sum of all values produced by selector function applied to each element in the array.
@JvmName(name = "sumOfULong")
inline fun CharBuffer.sumOf(selector: (Char) -> ULong): ULong
Returns the sum of all values produced by selector function applied to each element in the array.
@JvmName(name = "sumOfDouble")
inline fun DoubleBuffer.sumOf(selector: (Double) -> Double): Double
Returns the sum of all values produced by selector function applied to each element in the array.
@JvmName(name = "sumOfInt")
inline fun DoubleBuffer.sumOf(selector: (Double) -> Int): Int
Returns the sum of all values produced by selector function applied to each element in the array.
@JvmName(name = "sumOfLong")
inline fun DoubleBuffer.sumOf(selector: (Double) -> Long): Long
Returns the sum of all values produced by selector function applied to each element in the array.
@JvmName(name = "sumOfUInt")
inline fun DoubleBuffer.sumOf(selector: (Double) -> UInt): UInt
Returns the sum of all values produced by selector function applied to each element in the array.
@JvmName(name = "sumOfULong")
inline fun DoubleBuffer.sumOf(selector: (Double) -> ULong): ULong
Returns the sum of all values produced by selector function applied to each element in the array.
@JvmName(name = "sumOfDouble")
inline fun FloatBuffer.sumOf(selector: (Float) -> Double): Double
Returns the sum of all values produced by selector function applied to each element in the array.
@JvmName(name = "sumOfInt")
inline fun FloatBuffer.sumOf(selector: (Float) -> Int): Int
Returns the sum of all values produced by selector function applied to each element in the array.
@JvmName(name = "sumOfLong")
inline fun FloatBuffer.sumOf(selector: (Float) -> Long): Long
Returns the sum of all values produced by selector function applied to each element in the array.
@JvmName(name = "sumOfUInt")
inline fun FloatBuffer.sumOf(selector: (Float) -> UInt): UInt
Returns the sum of all values produced by selector function applied to each element in the array.
@JvmName(name = "sumOfULong")
inline fun FloatBuffer.sumOf(selector: (Float) -> ULong): ULong
Returns the sum of all values produced by selector function applied to each element in the array.
@JvmName(name = "sumOfDouble")
inline fun IntBuffer.sumOf(selector: (Int) -> Double): Double
Returns the sum of all values produced by selector function applied to each element in the array.
@JvmName(name = "sumOfInt")
inline fun IntBuffer.sumOf(selector: (Int) -> Int): Int
Returns the sum of all values produced by selector function applied to each element in the array.
@JvmName(name = "sumOfLong")
inline fun IntBuffer.sumOf(selector: (Int) -> Long): Long
Returns the sum of all values produced by selector function applied to each element in the array.
@JvmName(name = "sumOfUInt")
inline fun IntBuffer.sumOf(selector: (Int) -> UInt): UInt
Returns the sum of all values produced by selector function applied to each element in the array.
@JvmName(name = "sumOfULong")
inline fun IntBuffer.sumOf(selector: (Int) -> ULong): ULong
Returns the sum of all values produced by selector function applied to each element in the array.
@JvmName(name = "sumOfDouble")
inline fun LongBuffer.sumOf(selector: (Long) -> Double): Double
Returns the sum of all values produced by selector function applied to each element in the array.
@JvmName(name = "sumOfInt")
inline fun LongBuffer.sumOf(selector: (Long) -> Int): Int
Returns the sum of all values produced by selector function applied to each element in the array.
@JvmName(name = "sumOfLong")
inline fun LongBuffer.sumOf(selector: (Long) -> Long): Long
Returns the sum of all values produced by selector function applied to each element in the array.
@JvmName(name = "sumOfUInt")
inline fun LongBuffer.sumOf(selector: (Long) -> UInt): UInt
Returns the sum of all values produced by selector function applied to each element in the array.
@JvmName(name = "sumOfULong")
inline fun LongBuffer.sumOf(selector: (Long) -> ULong): ULong
Returns the sum of all values produced by selector function applied to each element in the array.
@JvmName(name = "sumOfDouble")
inline fun ShortBuffer.sumOf(selector: (Short) -> Double): Double
Returns the sum of all values produced by selector function applied to each element in the array.
@JvmName(name = "sumOfInt")
inline fun ShortBuffer.sumOf(selector: (Short) -> Int): Int
Returns the sum of all values produced by selector function applied to each element in the array.
@JvmName(name = "sumOfLong")
inline fun ShortBuffer.sumOf(selector: (Short) -> Long): Long
Returns the sum of all values produced by selector function applied to each element in the array.
@JvmName(name = "sumOfUInt")
inline fun ShortBuffer.sumOf(selector: (Short) -> UInt): UInt
Returns the sum of all values produced by selector function applied to each element in the array.
@JvmName(name = "sumOfULong")
inline fun ShortBuffer.sumOf(selector: (Short) -> ULong): ULong
Returns the sum of all values produced by selector function applied to each element in the array.
take
Link copied to clipboard
fun ByteBuffer.take(n: Int): List<Byte>
Returns a list containing first n elements.
fun CharBuffer.take(n: Int): List<Char>
Returns a list containing first n elements.
fun DoubleBuffer.take(n: Int): List<Double>
Returns a list containing first n elements.
fun FloatBuffer.take(n: Int): List<Float>
Returns a list containing first n elements.
fun IntBuffer.take(n: Int): List<Int>
Returns a list containing first n elements.
fun LongBuffer.take(n: Int): List<Long>
Returns a list containing first n elements.
fun ShortBuffer.take(n: Int): List<Short>
Returns a list containing first n elements.
takeLast
Link copied to clipboard
fun ByteBuffer.takeLast(n: Int): List<Byte>
Returns a list containing last n elements.
fun CharBuffer.takeLast(n: Int): List<Char>
Returns a list containing last n elements.
fun DoubleBuffer.takeLast(n: Int): List<Double>
Returns a list containing last n elements.
fun FloatBuffer.takeLast(n: Int): List<Float>
Returns a list containing last n elements.
fun IntBuffer.takeLast(n: Int): List<Int>
Returns a list containing last n elements.
fun LongBuffer.takeLast(n: Int): List<Long>
Returns a list containing last n elements.
fun ShortBuffer.takeLast(n: Int): List<Short>
Returns a list containing last n elements.
takeLastWhile
Link copied to clipboard
inline fun ByteBuffer.takeLastWhile(predicate: (Byte) -> Boolean): List<Byte>
Returns a list containing last elements satisfying the given predicate.
inline fun CharBuffer.takeLastWhile(predicate: (Char) -> Boolean): List<Char>
Returns a list containing last elements satisfying the given predicate.
inline fun DoubleBuffer.takeLastWhile(predicate: (Double) -> Boolean): List<Double>
Returns a list containing last elements satisfying the given predicate.
inline fun FloatBuffer.takeLastWhile(predicate: (Float) -> Boolean): List<Float>
Returns a list containing last elements satisfying the given predicate.
inline fun IntBuffer.takeLastWhile(predicate: (Int) -> Boolean): List<Int>
Returns a list containing last elements satisfying the given predicate.
inline fun LongBuffer.takeLastWhile(predicate: (Long) -> Boolean): List<Long>
Returns a list containing last elements satisfying the given predicate.
inline fun ShortBuffer.takeLastWhile(predicate: (Short) -> Boolean): List<Short>
Returns a list containing last elements satisfying the given predicate.
takeWhile
Link copied to clipboard
inline fun ByteBuffer.takeWhile(predicate: (Byte) -> Boolean): List<Byte>
Returns a list containing first elements satisfying the given predicate.
inline fun CharBuffer.takeWhile(predicate: (Char) -> Boolean): List<Char>
Returns a list containing first elements satisfying the given predicate.
inline fun DoubleBuffer.takeWhile(predicate: (Double) -> Boolean): List<Double>
Returns a list containing first elements satisfying the given predicate.
inline fun FloatBuffer.takeWhile(predicate: (Float) -> Boolean): List<Float>
Returns a list containing first elements satisfying the given predicate.
inline fun IntBuffer.takeWhile(predicate: (Int) -> Boolean): List<Int>
Returns a list containing first elements satisfying the given predicate.
inline fun LongBuffer.takeWhile(predicate: (Long) -> Boolean): List<Long>
Returns a list containing first elements satisfying the given predicate.
inline fun ShortBuffer.takeWhile(predicate: (Short) -> Boolean): List<Short>
Returns a list containing first elements satisfying the given predicate.
toByteArray
Link copied to clipboard
fun ByteBuffer.toByteArray(): ByteArray
Returns a buffer of Byte containing all of the elements of this primitive buffer.
toByteBuffer
Link copied to clipboard
fun Array<out Byte>.toByteBuffer(): ByteBuffer
Returns a direct Byte buffer containing all of the elements of this generic array.
fun ByteArray.toByteBuffer(): ByteBuffer
Returns a direct primitive buffer containing all of the elements of this byte array.
toCharArray
Link copied to clipboard
fun CharBuffer.toCharArray(): CharArray
Returns a buffer of Char containing all of the elements of this primitive buffer.
toCharBuffer
Link copied to clipboard
fun Array<out Char>.toCharBuffer(): CharBuffer
Returns a direct Char buffer containing all of the elements of this generic array.
fun CharArray.toCharBuffer(): CharBuffer
Returns a direct primitive buffer containing all of the elements of this char array.
toCollection
Link copied to clipboard
fun <C : MutableCollection<in Byte>> ByteBuffer.toCollection(destination: C): C
Appends all elements to the given destination collection.
fun <C : MutableCollection<in Char>> CharBuffer.toCollection(destination: C): C
Appends all elements to the given destination collection.
fun <C : MutableCollection<in Double>> DoubleBuffer.toCollection(destination: C): C
Appends all elements to the given destination collection.
fun <C : MutableCollection<in Float>> FloatBuffer.toCollection(destination: C): C
Appends all elements to the given destination collection.
fun <C : MutableCollection<in Int>> IntBuffer.toCollection(destination: C): C
Appends all elements to the given destination collection.
fun <C : MutableCollection<in Long>> LongBuffer.toCollection(destination: C): C
Appends all elements to the given destination collection.
fun <C : MutableCollection<in Short>> ShortBuffer.toCollection(destination: C): C
Appends all elements to the given destination collection.
toDoubleArray
Link copied to clipboard
fun DoubleBuffer.toDoubleArray(): DoubleArray
Returns a buffer of Double containing all of the elements of this primitive buffer.
toDoubleBuffer
Link copied to clipboard
fun Array<out Double>.toDoubleBuffer(): DoubleBuffer
Returns a direct Double buffer containing all of the elements of this generic array.
fun DoubleArray.toDoubleBuffer(): DoubleBuffer
Returns a direct primitive buffer containing all of the elements of this double array.
toFloatArray
Link copied to clipboard
fun FloatBuffer.toFloatArray(): FloatArray
Returns a buffer of Float containing all of the elements of this primitive buffer.
toFloatBuffer
Link copied to clipboard
fun Array<out Float>.toFloatBuffer(): FloatBuffer
Returns a direct Float buffer containing all of the elements of this generic array.
fun FloatArray.toFloatBuffer(): FloatBuffer
Returns a direct primitive buffer containing all of the elements of this float array.
toHashSet
Link copied to clipboard
fun ByteBuffer.toHashSet(): HashSet<Byte>
Returns a HashSet of all elements.
fun CharBuffer.toHashSet(): HashSet<Char>
Returns a HashSet of all elements.
fun DoubleBuffer.toHashSet(): HashSet<Double>
Returns a HashSet of all elements.
fun FloatBuffer.toHashSet(): HashSet<Float>
Returns a HashSet of all elements.
fun IntBuffer.toHashSet(): HashSet<Int>
Returns a HashSet of all elements.
fun LongBuffer.toHashSet(): HashSet<Long>
Returns a HashSet of all elements.
fun ShortBuffer.toHashSet(): HashSet<Short>
Returns a HashSet of all elements.
toIntArray
Link copied to clipboard
fun IntBuffer.toIntArray(): IntArray
Returns a buffer of Int containing all of the elements of this primitive buffer.
toIntBuffer
Link copied to clipboard
fun Array<out Int>.toIntBuffer(): IntBuffer
Returns a direct Int buffer containing all of the elements of this generic array.
fun IntArray.toIntBuffer(): IntBuffer
Returns a direct primitive buffer containing all of the elements of this int array.
toList
Link copied to clipboard
fun ByteBuffer.toList(): List<Byte>
Returns a List containing all elements.
fun CharBuffer.toList(): List<Char>
Returns a List containing all elements.
fun DoubleBuffer.toList(): List<Double>
Returns a List containing all elements.
fun FloatBuffer.toList(): List<Float>
Returns a List containing all elements.
fun IntBuffer.toList(): List<Int>
Returns a List containing all elements.
fun LongBuffer.toList(): List<Long>
Returns a List containing all elements.
fun ShortBuffer.toList(): List<Short>
Returns a List containing all elements.
toLongArray
Link copied to clipboard
fun LongBuffer.toLongArray(): LongArray
Returns a buffer of Long containing all of the elements of this primitive buffer.
toLongBuffer
Link copied to clipboard
fun Array<out Long>.toLongBuffer(): LongBuffer
Returns a direct Long buffer containing all of the elements of this generic array.
fun LongArray.toLongBuffer(): LongBuffer
Returns a direct primitive buffer containing all of the elements of this long array.
toMutableList
Link copied to clipboard
fun ByteBuffer.toMutableList(): MutableList<Byte>
Returns a MutableList filled with all elements of this buffer.
fun CharBuffer.toMutableList(): MutableList<Char>
Returns a MutableList filled with all elements of this buffer.
fun DoubleBuffer.toMutableList(): MutableList<Double>
Returns a MutableList filled with all elements of this buffer.
fun FloatBuffer.toMutableList(): MutableList<Float>
Returns a MutableList filled with all elements of this buffer.
fun IntBuffer.toMutableList(): MutableList<Int>
Returns a MutableList filled with all elements of this buffer.
fun LongBuffer.toMutableList(): MutableList<Long>
Returns a MutableList filled with all elements of this buffer.
fun ShortBuffer.toMutableList(): MutableList<Short>
Returns a MutableList filled with all elements of this buffer.
toMutableSet
Link copied to clipboard
fun ByteBuffer.toMutableSet(): MutableSet<Byte>
Returns a mutable set containing all distinct elements from the given buffer.
fun CharBuffer.toMutableSet(): MutableSet<Char>
Returns a mutable set containing all distinct elements from the given buffer.
fun DoubleBuffer.toMutableSet(): MutableSet<Double>
Returns a mutable set containing all distinct elements from the given buffer.
fun FloatBuffer.toMutableSet(): MutableSet<Float>
Returns a mutable set containing all distinct elements from the given buffer.
fun IntBuffer.toMutableSet(): MutableSet<Int>
Returns a mutable set containing all distinct elements from the given buffer.
fun LongBuffer.toMutableSet(): MutableSet<Long>
Returns a mutable set containing all distinct elements from the given buffer.
fun ShortBuffer.toMutableSet(): MutableSet<Short>
Returns a mutable set containing all distinct elements from the given buffer.
toSet
Link copied to clipboard
fun ByteBuffer.toSet(): Set<Byte>
Returns a Set of all elements.
fun CharBuffer.toSet(): Set<Char>
Returns a Set of all elements.
fun DoubleBuffer.toSet(): Set<Double>
Returns a Set of all elements.
fun FloatBuffer.toSet(): Set<Float>
Returns a Set of all elements.
fun IntBuffer.toSet(): Set<Int>
Returns a Set of all elements.
fun LongBuffer.toSet(): Set<Long>
Returns a Set of all elements.
fun ShortBuffer.toSet(): Set<Short>
Returns a Set of all elements.
toShortArray
Link copied to clipboard
fun ShortBuffer.toShortArray(): ShortArray
Returns a buffer of Short containing all of the elements of this primitive buffer.
toShortBuffer
Link copied to clipboard
fun Array<out Short>.toShortBuffer(): ShortBuffer
Returns a direct Short buffer containing all of the elements of this generic array.
fun ShortArray.toShortBuffer(): ShortBuffer
Returns a direct primitive buffer containing all of the elements of this short array.
toSortedSet
Link copied to clipboard
fun ByteBuffer.toSortedSet(): SortedSet<Byte>
Returns a SortedSet of all elements.
fun CharBuffer.toSortedSet(): SortedSet<Char>
Returns a SortedSet of all elements.
fun DoubleBuffer.toSortedSet(): SortedSet<Double>
Returns a SortedSet of all elements.
fun FloatBuffer.toSortedSet(): SortedSet<Float>
Returns a SortedSet of all elements.
fun IntBuffer.toSortedSet(): SortedSet<Int>
Returns a SortedSet of all elements.
fun LongBuffer.toSortedSet(): SortedSet<Long>
Returns a SortedSet of all elements.
fun ShortBuffer.toSortedSet(): SortedSet<Short>
Returns a SortedSet of all elements.
toTypedArray
Link copied to clipboard
fun ByteBuffer.toTypedArray(): Array<Byte>
Returns a typed object buffer containing all of the elements of this direct primitive buffer.
fun CharBuffer.toTypedArray(): Array<Char>
Returns a typed object buffer containing all of the elements of this direct primitive buffer.
fun DoubleBuffer.toTypedArray(): Array<Double>
Returns a typed object buffer containing all of the elements of this direct primitive buffer.
fun FloatBuffer.toTypedArray(): Array<Float>
Returns a typed object buffer containing all of the elements of this direct primitive buffer.
fun IntBuffer.toTypedArray(): Array<Int>
Returns a typed object buffer containing all of the elements of this direct primitive buffer.
fun LongBuffer.toTypedArray(): Array<Long>
Returns a typed object buffer containing all of the elements of this direct primitive buffer.
fun ShortBuffer.toTypedArray(): Array<Short>
Returns a typed object buffer containing all of the elements of this direct primitive buffer.
union
Link copied to clipboard
infix fun ByteBuffer.union(other: Iterable<Byte>): Set<Byte>
Returns a set containing all distinct elements from both collections.
infix fun CharBuffer.union(other: Iterable<Char>): Set<Char>
Returns a set containing all distinct elements from both collections.
infix fun DoubleBuffer.union(other: Iterable<Double>): Set<Double>
Returns a set containing all distinct elements from both collections.
infix fun FloatBuffer.union(other: Iterable<Float>): Set<Float>
Returns a set containing all distinct elements from both collections.
infix fun IntBuffer.union(other: Iterable<Int>): Set<Int>
Returns a set containing all distinct elements from both collections.
infix fun LongBuffer.union(other: Iterable<Long>): Set<Long>
Returns a set containing all distinct elements from both collections.
infix fun ShortBuffer.union(other: Iterable<Short>): Set<Short>
Returns a set containing all distinct elements from both collections.
withIndex
Link copied to clipboard
fun ByteBuffer.withIndex(): Iterable<IndexedValue<Byte>>
Returns a lazy Iterable that wraps each element of the original array into an IndexedValue containing the index of that element and the element itself.
fun CharBuffer.withIndex(): Iterable<IndexedValue<Char>>
Returns a lazy Iterable that wraps each element of the original array into an IndexedValue containing the index of that element and the element itself.
fun DoubleBuffer.withIndex(): Iterable<IndexedValue<Double>>
Returns a lazy Iterable that wraps each element of the original array into an IndexedValue containing the index of that element and the element itself.
fun FloatBuffer.withIndex(): Iterable<IndexedValue<Float>>
Returns a lazy Iterable that wraps each element of the original array into an IndexedValue containing the index of that element and the element itself.
fun IntBuffer.withIndex(): Iterable<IndexedValue<Int>>
Returns a lazy Iterable that wraps each element of the original array into an IndexedValue containing the index of that element and the element itself.
fun LongBuffer.withIndex(): Iterable<IndexedValue<Long>>
Returns a lazy Iterable that wraps each element of the original array into an IndexedValue containing the index of that element and the element itself.
fun ShortBuffer.withIndex(): Iterable<IndexedValue<Short>>
Returns a lazy Iterable that wraps each element of the original array into an IndexedValue containing the index of that element and the element itself.
zip
Link copied to clipboard
infix fun ByteBuffer.zip(other: ByteBuffer): List<Pair<Byte, Byte>>
Returns a list of pairs built from the elements of this array and the other array with the same index.
infix fun <R> ByteBuffer.zip(other: Array<out R>): List<Pair<Byte, R>>
Returns a list of pairs built from the elements of this array and the other array with the same index.
infix fun ByteBuffer.zip(other: ByteArray): List<Pair<Byte, Byte>>
Returns a list of pairs built from the elements of this array and the other array with the same index.
infix fun <R> ByteBuffer.zip(other: Iterable<R>): List<Pair<Byte, R>>
Returns a list of pairs built from the elements of this collection and other array with the same index.
infix fun CharBuffer.zip(other: CharBuffer): List<Pair<Char, Char>>
Returns a list of pairs built from the elements of this array and the other array with the same index.
infix fun <R> CharBuffer.zip(other: Array<out R>): List<Pair<Char, R>>
Returns a list of pairs built from the elements of this array and the other array with the same index.
infix fun CharBuffer.zip(other: CharArray): List<Pair<Char, Char>>
Returns a list of pairs built from the elements of this array and the other array with the same index.
infix fun <R> CharBuffer.zip(other: Iterable<R>): List<Pair<Char, R>>
Returns a list of pairs built from the elements of this collection and other array with the same index.
infix fun DoubleBuffer.zip(other: DoubleBuffer): List<Pair<Double, Double>>
Returns a list of pairs built from the elements of this array and the other array with the same index.
infix fun <R> DoubleBuffer.zip(other: Array<out R>): List<Pair<Double, R>>
Returns a list of pairs built from the elements of this array and the other array with the same index.
infix fun DoubleBuffer.zip(other: DoubleArray): List<Pair<Double, Double>>
Returns a list of pairs built from the elements of this array and the other array with the same index.
infix fun <R> DoubleBuffer.zip(other: Iterable<R>): List<Pair<Double, R>>
Returns a list of pairs built from the elements of this collection and other array with the same index.
infix fun FloatBuffer.zip(other: FloatBuffer): List<Pair<Float, Float>>
Returns a list of pairs built from the elements of this array and the other array with the same index.
infix fun <R> FloatBuffer.zip(other: Array<out R>): List<Pair<Float, R>>
Returns a list of pairs built from the elements of this array and the other array with the same index.
infix fun FloatBuffer.zip(other: FloatArray): List<Pair<Float, Float>>
Returns a list of pairs built from the elements of this array and the other array with the same index.
infix fun <R> FloatBuffer.zip(other: Iterable<R>): List<Pair<Float, R>>
Returns a list of pairs built from the elements of this collection and other array with the same index.
infix fun IntBuffer.zip(other: IntBuffer): List<Pair<Int, Int>>
Returns a list of pairs built from the elements of this array and the other array with the same index.
infix fun <R> IntBuffer.zip(other: Array<out R>): List<Pair<Int, R>>
Returns a list of pairs built from the elements of this array and the other array with the same index.
infix fun IntBuffer.zip(other: IntArray): List<Pair<Int, Int>>
Returns a list of pairs built from the elements of this array and the other array with the same index.
infix fun <R> IntBuffer.zip(other: Iterable<R>): List<Pair<Int, R>>
Returns a list of pairs built from the elements of this collection and other array with the same index.
infix fun LongBuffer.zip(other: LongBuffer): List<Pair<Long, Long>>
Returns a list of pairs built from the elements of this array and the other array with the same index.
infix fun <R> LongBuffer.zip(other: Array<out R>): List<Pair<Long, R>>
Returns a list of pairs built from the elements of this array and the other array with the same index.
infix fun LongBuffer.zip(other: LongArray): List<Pair<Long, Long>>
Returns a list of pairs built from the elements of this array and the other array with the same index.
infix fun <R> LongBuffer.zip(other: Iterable<R>): List<Pair<Long, R>>
Returns a list of pairs built from the elements of this collection and other array with the same index.
infix fun ShortBuffer.zip(other: ShortBuffer): List<Pair<Short, Short>>
Returns a list of pairs built from the elements of this array and the other array with the same index.
infix fun <R> ShortBuffer.zip(other: Array<out R>): List<Pair<Short, R>>
Returns a list of pairs built from the elements of this array and the other array with the same index.
infix fun ShortBuffer.zip(other: ShortArray): List<Pair<Short, Short>>
Returns a list of pairs built from the elements of this array and the other array with the same index.
infix fun <R> ShortBuffer.zip(other: Iterable<R>): List<Pair<Short, R>>
Returns a list of pairs built from the elements of this collection and other array with the same index.
inline fun <V> ByteBuffer.zip(other: ByteBuffer, transform: (a: Byte, b: Byte) -> V): List<V>
Returns a list of values built from the elements of this array and the other array with the same index using the provided transform function applied to each pair of elements.
inline fun <R, V> ByteBuffer.zip(other: Array<out R>, transform: (a: Byte, R) -> V): List<V>
Returns a list of values built from the elements of this array and the other array with the same index using the provided transform function applied to each pair of elements.
inline fun <V> ByteBuffer.zip(other: ByteArray, transform: (a: Byte, b: Byte) -> V): List<V>
Returns a list of values built from the elements of this array and the other array with the same index using the provided transform function applied to each pair of elements.
inline fun <R, V> ByteBuffer.zip(other: Iterable<R>, transform: (a: Byte, R) -> V): List<V>
Returns a list of values built from the elements of this array and the other collection with the same index using the provided transform function applied to each pair of elements.
inline fun <V> CharBuffer.zip(other: CharBuffer, transform: (a: Char, b: Char) -> V): List<V>
Returns a list of values built from the elements of this array and the other array with the same index using the provided transform function applied to each pair of elements.
inline fun <R, V> CharBuffer.zip(other: Array<out R>, transform: (a: Char, R) -> V): List<V>
Returns a list of values built from the elements of this array and the other array with the same index using the provided transform function applied to each pair of elements.
inline fun <V> CharBuffer.zip(other: CharArray, transform: (a: Char, b: Char) -> V): List<V>
Returns a list of values built from the elements of this array and the other array with the same index using the provided transform function applied to each pair of elements.
inline fun <R, V> CharBuffer.zip(other: Iterable<R>, transform: (a: Char, R) -> V): List<V>
Returns a list of values built from the elements of this array and the other collection with the same index using the provided transform function applied to each pair of elements.
inline fun <V> DoubleBuffer.zip(other: DoubleBuffer, transform: (a: Double, b: Double) -> V): List<V>
Returns a list of values built from the elements of this array and the other array with the same index using the provided transform function applied to each pair of elements.
inline fun <R, V> DoubleBuffer.zip(other: Array<out R>, transform: (a: Double, R) -> V): List<V>
Returns a list of values built from the elements of this array and the other array with the same index using the provided transform function applied to each pair of elements.
inline fun <V> DoubleBuffer.zip(other: DoubleArray, transform: (a: Double, b: Double) -> V): List<V>
Returns a list of values built from the elements of this array and the other array with the same index using the provided transform function applied to each pair of elements.
inline fun <R, V> DoubleBuffer.zip(other: Iterable<R>, transform: (a: Double, R) -> V): List<V>
Returns a list of values built from the elements of this array and the other collection with the same index using the provided transform function applied to each pair of elements.
inline fun <V> FloatBuffer.zip(other: FloatBuffer, transform: (a: Float, b: Float) -> V): List<V>
Returns a list of values built from the elements of this array and the other array with the same index using the provided transform function applied to each pair of elements.
inline fun <R, V> FloatBuffer.zip(other: Array<out R>, transform: (a: Float, R) -> V): List<V>
Returns a list of values built from the elements of this array and the other array with the same index using the provided transform function applied to each pair of elements.
inline fun <V> FloatBuffer.zip(other: FloatArray, transform: (a: Float, b: Float) -> V): List<V>
Returns a list of values built from the elements of this array and the other array with the same index using the provided transform function applied to each pair of elements.
inline fun <R, V> FloatBuffer.zip(other: Iterable<R>, transform: (a: Float, R) -> V): List<V>
Returns a list of values built from the elements of this array and the other collection with the same index using the provided transform function applied to each pair of elements.
inline fun <V> IntBuffer.zip(other: IntBuffer, transform: (a: Int, b: Int) -> V): List<V>
Returns a list of values built from the elements of this array and the other array with the same index using the provided transform function applied to each pair of elements.
inline fun <R, V> IntBuffer.zip(other: Array<out R>, transform: (a: Int, R) -> V): List<V>
Returns a list of values built from the elements of this array and the other array with the same index using the provided transform function applied to each pair of elements.
inline fun <V> IntBuffer.zip(other: IntArray, transform: (a: Int, b: Int) -> V): List<V>
Returns a list of values built from the elements of this array and the other array with the same index using the provided transform function applied to each pair of elements.
inline fun <R, V> IntBuffer.zip(other: Iterable<R>, transform: (a: Int, R) -> V): List<V>
Returns a list of values built from the elements of this array and the other collection with the same index using the provided transform function applied to each pair of elements.
inline fun <V> LongBuffer.zip(other: LongBuffer, transform: (a: Long, b: Long) -> V): List<V>
Returns a list of values built from the elements of this array and the other array with the same index using the provided transform function applied to each pair of elements.
inline fun <R, V> LongBuffer.zip(other: Array<out R>, transform: (a: Long, R) -> V): List<V>
Returns a list of values built from the elements of this array and the other array with the same index using the provided transform function applied to each pair of elements.
inline fun <V> LongBuffer.zip(other: LongArray, transform: (a: Long, b: Long) -> V): List<V>
Returns a list of values built from the elements of this array and the other array with the same index using the provided transform function applied to each pair of elements.
inline fun <R, V> LongBuffer.zip(other: Iterable<R>, transform: (a: Long, R) -> V): List<V>
Returns a list of values built from the elements of this array and the other collection with the same index using the provided transform function applied to each pair of elements.
inline fun <V> ShortBuffer.zip(other: ShortBuffer, transform: (a: Short, b: Short) -> V): List<V>
Returns a list of values built from the elements of this array and the other array with the same index using the provided transform function applied to each pair of elements.
inline fun <R, V> ShortBuffer.zip(other: Array<out R>, transform: (a: Short, R) -> V): List<V>
Returns a list of values built from the elements of this array and the other array with the same index using the provided transform function applied to each pair of elements.
inline fun <V> ShortBuffer.zip(other: ShortArray, transform: (a: Short, b: Short) -> V): List<V>
Returns a list of values built from the elements of this array and the other array with the same index using the provided transform function applied to each pair of elements.
inline fun <R, V> ShortBuffer.zip(other: Iterable<R>, transform: (a: Short, R) -> V): List<V>
Returns a list of values built from the elements of this array and the other collection with the same index using the provided transform function applied to each pair of elements.

Properties

indices
Link copied to clipboard
val ByteBuffer.indices: IntRange
Returns the range of valid indices for the buffer.
indices
Link copied to clipboard
val ShortBuffer.indices: IntRange
Returns the range of valid indices for the buffer.
indices
Link copied to clipboard
val IntBuffer.indices: IntRange
Returns the range of valid indices for the buffer.
indices
Link copied to clipboard
val LongBuffer.indices: IntRange
Returns the range of valid indices for the buffer.
indices
Link copied to clipboard
val FloatBuffer.indices: IntRange
Returns the range of valid indices for the buffer.
indices
Link copied to clipboard
val DoubleBuffer.indices: IntRange
Returns the range of valid indices for the buffer.
indices
Link copied to clipboard
val CharBuffer.indices: IntRange
Returns the range of valid indices for the buffer.
lastIndex
Link copied to clipboard
val ByteBuffer.lastIndex: Int
Returns the last valid index for the buffer.
lastIndex
Link copied to clipboard
val ShortBuffer.lastIndex: Int
Returns the last valid index for the buffer.
lastIndex
Link copied to clipboard
val IntBuffer.lastIndex: Int
Returns the last valid index for the buffer.
lastIndex
Link copied to clipboard
val LongBuffer.lastIndex: Int
Returns the last valid index for the buffer.
lastIndex
Link copied to clipboard
val FloatBuffer.lastIndex: Int
Returns the last valid index for the buffer.
lastIndex
Link copied to clipboard
val DoubleBuffer.lastIndex: Int
Returns the last valid index for the buffer.
lastIndex
Link copied to clipboard
val CharBuffer.lastIndex: Int
Returns the last valid index for the buffer.