public class JSnappyBuffer
extends java.lang.Object
コンストラクタと説明 |
---|
JSnappyBuffer()
Creates an unitialized buffer.
|
JSnappyBuffer(int capacity)
Creates an initialized buffer with the specified capacity.
|
修飾子とタイプ | メソッドと説明 |
---|---|
void |
clear(int length)
オブジェクト再利用.
|
byte[] |
getData()
Returns the byte array used as a backing store for this
buffer.
|
int |
getLength()
Returns the length of this buffer.
|
void |
setLength(int length)
Sets the length of this buffer.
|
byte[] |
toByteArray()
Returns a copy of the buffers internal array in a newly allocated
byte array with the buffer's length.
|
public JSnappyBuffer()
public JSnappyBuffer(int capacity)
capacity
- initial buffer length in bytespublic void clear(int length)
length
- 再利用時のバイナリ長を設定します.public byte[] getData()
public int getLength()
public void setLength(int length)
length
- buffer lengthpublic byte[] toByteArray()