public class Buffer extends Object
Modifier and Type | Field | Description |
---|---|---|
protected byte[] |
buf |
|
protected int |
length |
|
protected long |
offset |
Constructor | Description |
---|---|
Buffer(byte[] buf,
int length) |
|
Buffer(byte[] buf,
int length,
long offset) |
Modifier and Type | Method | Description |
---|---|---|
byte[] |
getBuffer() |
|
int |
getLength() |
|
long |
getOffset() |
Returns offset of the data the buffer was read from.
|
public Buffer(byte[] buf, int length)
buf
- the data buffer (always starts at 0)length
- length of the data in the bufferpublic Buffer(byte[] buf, int length, long offset)
buf
- the data buffer (always starts at 0)length
- length of the data in the bufferoffset
- offset of the data the buffer was read from.public byte[] getBuffer()
public int getLength()
public long getOffset()
Copyright © 2018. All rights reserved.