humble-video-noarch/src/main/java/io/humble/ferry/Buffer.java
public static Buffer make(RefCounted requestor, Buffer.Type type, int numElements, boolean zero) {
    long cPtr = FerryJNI.Buffer_make__SWIG_1(RefCounted.getCPtr(requestor), requestor, type.swigValue(), numElements, zero);
    return (cPtr == 0) ? null : new Buffer(cPtr, false);
  }
public static Buffer make(RefCounted requestor, Buffer.Type type, int numElements, boolean zero) {
    long cPtr = FerryJNI.Buffer_make__SWIG_1(RefCounted.getCPtr(requestor), requestor, type.swigValue(), numElements, zero);
    return (cPtr == 0) ? null : new Buffer(cPtr, false);
  }
Allocate a new buffer of at least bufferSize.<br>
<br>
@param requestor An optional value telling the Buffer class what object requested it.  This is used for debugging memory leaks; it's a marker for the FERRY object (e.g. IPacket) that actually requested the buffer.  If you're not an FERRY object, pass in null here.<br>
@param type The type of buffer.<br>
@param numElements The minimum number of elements of the specified<br>
type you will put in this buffer.<br>
@param zero If true, we will guarantee the buffer contains<br>
only zeros.  If false, we will not (it is <br>
faster to not, but then the buffer will have<br>
garbage-data in it).<br>
<br>
@return A new buffer, or null on error.