humble-video-noarch/src/main/java/io/humble/ferry/Buffer.java
public static Buffer make(RefCounted requestor, byte[] buffer, int offset, int length) {
    long cPtr = FerryJNI.Buffer_make__SWIG_2(RefCounted.getCPtr(requestor), requestor, buffer, offset, length);
    return (cPtr == 0) ? null : new Buffer(cPtr, false);
  }
public static Buffer make(RefCounted requestor, byte[] buffer, int offset, int length) {
    long cPtr = FerryJNI.Buffer_make__SWIG_2(RefCounted.getCPtr(requestor), requestor, buffer, offset, length);
    return (cPtr == 0) ? null : new Buffer(cPtr, false);
  }
Allocate a new Buffer, and copy the data in buffer into<br>
the new Buffer object.<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 buffer A java byte buffer for the data containing the<br>
data you want to copy.<br>
@param offset The starting offset in buffer where you want<br>
to start copying.<br>
@param length The total number of bytes you want to copy from buffer.<br>
<br>
@return a new Buffer object with a copy of the data in buffer,<br>
or null on failure.