getBufferSubData

abstract fun getBufferSubData(target: GLenum, srcByteOffset: GLintptr, dstBuffer: ArrayBufferView<*>, dstOffset: Int?, length: GLuint?)(source)

MDN Reference