final class ByteSliceWriter extends DataOutput
Modifier and Type | Field and Description |
---|---|
(package private) int |
offset0 |
private ByteBlockPool |
pool |
private byte[] |
slice |
private int |
upto |
Constructor and Description |
---|
ByteSliceWriter(ByteBlockPool pool) |
Modifier and Type | Method and Description |
---|---|
int |
getAddress() |
void |
init(int address)
Set up the writer to write at address.
|
void |
writeByte(byte b)
Write byte into byte slice stream
|
void |
writeBytes(byte[] b,
int offset,
int len)
Writes an array of bytes.
|
copyBytes, writeBytes, writeInt, writeLong, writeMapOfStrings, writeSetOfStrings, writeShort, writeString, writeVInt, writeVLong, writeZInt, writeZLong
private byte[] slice
private int upto
private final ByteBlockPool pool
int offset0
public ByteSliceWriter(ByteBlockPool pool)
public void init(int address)
public void writeByte(byte b)
writeByte
in class DataOutput
DataInput.readByte()
public void writeBytes(byte[] b, int offset, int len)
DataOutput
writeBytes
in class DataOutput
b
- the bytes to writeoffset
- the offset in the byte arraylen
- the number of bytes to writeDataInput.readBytes(byte[],int,int)
public int getAddress()