public static MediaPacket make(Buffer buffer) {
    """
	Allocate a new packet that wraps an existing Buffer.<br>
	<br>
	NOTE: At least 16 bytes of the passed in buffer will be used<br>
	for header information, so the resulting Packet.getSize() <br>
	will be smaller than Buffer.getBufferSize() .<br>
	<br>
	@param buffer The Buffer to wrap.<br>
	@return a new packet or null on error.
    """
    long cPtr = VideoJNI.MediaPacket_make__SWIG_1(Buffer.getCPtr(buffer), buffer);
    return (cPtr == 0) ? null : new MediaPacket(cPtr, false);
  }
public static MediaPacket make(Buffer buffer) {
    long cPtr = VideoJNI.MediaPacket_make__SWIG_1(Buffer.getCPtr(buffer), buffer);
    return (cPtr == 0) ? null : new MediaPacket(cPtr, false);
  }
public static MediaPacket make ( Buffer buffer ) { long cPtr = VideoJNI . MediaPacket_make__SWIG_1 ( Buffer . getCPtr ( buffer ) , buffer ) ; return ( cPtr == 0 ) ? null : new MediaPacket ( cPtr , false ) ; }
Allocate a new packet that wraps an existing Buffer.<br>
<br>
NOTE: At least 16 bytes of the passed in buffer will be used<br>
for header information, so the resulting Packet.getSize() <br>
will be smaller than Buffer.getBufferSize() .<br>
<br>
@param buffer The Buffer to wrap.<br>
@return a new packet or null on error.
Allocate a new packet that wraps an existing Buffer . <br > <br > NOTE : At least 16 bytes of the passed in buffer will be used<br > for header information so the resulting Packet . getSize () <br > will be smaller than Buffer . getBufferSize () . <br > <br >