I've noticed that in lwjgl, the functions which would require an array in opengl require bytebuffers or floatbuffers in lwjgl. is this for speed?

i need to be able to pass an array to a function i've written, and return one.

what would be faster, using a jbytearray, or converting my array to a buffer, sending it, having the method return a buffer, and converting it to an array?