humble-video-noarch/src/main/java/io/humble/ferry/Buffer.java
public static Buffer make(RefCounted requestor, java.nio.ByteBuffer directByteBuffer, int offset, int length) {
    long cPtr = FerryJNI.Buffer_make__SWIG_3(RefCounted.getCPtr(requestor), requestor, directByteBuffer, offset, length);
    return (cPtr == 0) ? null : new Buffer(cPtr, false);
  }
public static Buffer make(RefCounted requestor, java.nio.ByteBuffer directByteBuffer, int offset, int length) {
    long cPtr = FerryJNI.Buffer_make__SWIG_3(RefCounted.getCPtr(requestor), requestor, directByteBuffer, offset, length);
    return (cPtr == 0) ? null : new Buffer(cPtr, false);
  }
Create a new Buffer object that uses the direct byte buffer<br>
passed in by reference (i.e. it directly uses the bytes in<br>
the direct byte buffer).<br>
<br>
@param requestor An optional value telling the Buffer class<br>
what object requested it. This is used for debugging memory leaks;<br>
it's a marker for the FERRY object (e.g. IPacket) that actually<br>
requested the buffer. If you're not an FERRY object, pass in null here.<br>
@param directByteBuffer A direct java.nio.ByteBuffer object<br>
you want to use for your memory.  This must be a direct object --<br>
non direct objects will result in an JVM-dependent exception<br>
being thrown. <br>
@param offset The starting offset in directByteBuffer where you want<br>
to start copying.<br>
@param length The total number of bytes you want to copy from<br>
directByteBuffer.<br>
<br>
@return a new Buffer object that is using directByteBuffer<br>
behind the scenes, or null on failure.