fun put(src: FloatArray, off: Int, len: Int): FloatBuffer? {val length = src.size if (off < 0 || len < 0 || off.toLong() + len.toLong() > length) { throw IndexOutOfBoundsException() } if (len > remaining()) { throw BufferOverflowException() } for (i in off until off + len) { put(src[i]) } return this }
Writes floats from the given float array , starting from the specified offset , to the current position and increases the position by the number of floats written .