forEach

inline fun ByteBuffer.forEach(action: (Byte) -> Unit)
inline fun ShortBuffer.forEach(action: (Short) -> Unit)
inline fun IntBuffer.forEach(action: (Int) -> Unit)
inline fun LongBuffer.forEach(action: (Long) -> Unit)
inline fun FloatBuffer.forEach(action: (Float) -> Unit)
inline fun DoubleBuffer.forEach(action: (Double) -> Unit)
inline fun CharBuffer.forEach(action: (Char) -> Unit)

Performs the given action on each element.