count

fun ByteBuffer.count(): Int
fun ShortBuffer.count(): Int
fun IntBuffer.count(): Int
fun LongBuffer.count(): Int
fun FloatBuffer.count(): Int
fun DoubleBuffer.count(): Int
fun CharBuffer.count(): Int

Returns the number of elements in this buffer.

inline fun ByteBuffer.count(predicate: (Byte) -> Boolean): Int
inline fun ShortBuffer.count(predicate: (Short) -> Boolean): Int
inline fun IntBuffer.count(predicate: (Int) -> Boolean): Int
inline fun LongBuffer.count(predicate: (Long) -> Boolean): Int
inline fun FloatBuffer.count(predicate: (Float) -> Boolean): Int
inline fun DoubleBuffer.count(predicate: (Double) -> Boolean): Int
inline fun CharBuffer.count(predicate: (Char) -> Boolean): Int

Returns the number of elements matching the given predicate.