ByteBuffer for storage.
ByteWindow
| Modifier and Type | Field and Description |
|---|---|
| private final ByteBuffer |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected int | copy(int
offset within the window to start copying from. p, byte[] destination buffer to copy into. b, int offset within o, int dstbuf to start copying into.number of bytes to copy. This value may exceed the number of
bytes remaining in the window starting at offset
n)pos.Implements abstract org. Copy bytes from the window to a caller supplied buffer. |
| protected int | setInput(int
position pos, Inflater an inf)java. object.Implements abstract org. Set the input |
| pack-priv void | write(PackOutputStream out, long pos, int cnt)
Implements abstract org.
|
| buffer | back to summary |
|---|---|
| private final ByteBuffer buffer | |
| ByteBufferWindow | back to summary |
|---|---|
| pack-priv ByteBufferWindow(Pack pack, long o, ByteBuffer b) | |
| copy | back to summary |
|---|---|
| protected int copy(int p, byte[] b, int o, int n) Implements abstract org. Doc from org. Copy bytes from the window to a caller supplied buffer.
| |
| setInput | back to summary |
|---|---|
| protected int setInput(int pos, Inflater inf) throws DataFormatException Implements abstract org. Doc from org. Set the input
| |
| write | back to summary |
|---|---|
| pack-priv void write(PackOutputStream out, long pos, int cnt) throws IOException Implements abstract org.
| |