Implements ByteBuffer support for all LZ4 methods, running with the same
performance as byte array methods for the JNI and Unsafe versions.