public class Buffer extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
NO_INCREMENT |
| Constructor and Description |
|---|
Buffer() |
Buffer(byte[] buffer) |
Buffer(byte[] buffer,
int capacityIncrement) |
Buffer(int capacityIncrement) |
| Modifier and Type | Method and Description |
|---|---|
int |
advance(int step) |
int |
advance(int step,
byte value) |
int |
align(int boundary) |
int |
align(int boundary,
byte value) |
byte[] |
copy() |
byte[] |
getBuffer() |
int |
getCapacity() |
int |
getCapacityIncrement() |
int |
getIndex() |
int |
getIndex(int advance) |
int |
getLength() |
void |
reset() |
void |
setBuffer(byte[] buffer) |
void |
setCapacityIncrement(int capacityIncrement) |
void |
setIndex(int index) |
void |
setLength(int length) |
public static final int NO_INCREMENT
public Buffer()
public Buffer(int capacityIncrement)
public Buffer(byte[] buffer)
public Buffer(byte[] buffer,
int capacityIncrement)
public int getCapacity()
public int getCapacityIncrement()
public void setCapacityIncrement(int capacityIncrement)
public byte[] getBuffer()
public void setBuffer(byte[] buffer)
public int getLength()
public void setLength(int length)
public byte[] copy()
public void reset()
public int getIndex()
public int getIndex(int advance)
public void setIndex(int index)
public int align(int boundary)
public int align(int boundary,
byte value)
public int advance(int step)
public int advance(int step,
byte value)
Copyright © 2017 LSST. All rights reserved.