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, writeZLongprivate 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 DataOutputDataInput.readByte()public void writeBytes(byte[] b,
int offset,
int len)
DataOutputwriteBytes in class DataOutputb - the bytes to writeoffset - the offset in the byte arraylen - the number of bytes to writeDataInput.readBytes(byte[],int,int)public int getAddress()