public class Buffer extends Object
Modifier and Type | Field and Description |
---|---|
protected byte[] |
buf |
protected int |
length |
protected long |
offset |
Constructor and Description |
---|
Buffer(byte[] buf,
int length) |
Buffer(byte[] buf,
int length,
long offset) |
Modifier and Type | Method and 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 © 2016. All rights reserved.