public class CodecDataInput extends Object implements DataInput
Modifier and Type | Field and Description |
---|---|
protected byte[] |
backingBuffer |
protected org.tikv.common.codec.CodecDataInput.UnSyncByteArrayInputStream |
backingStream |
protected DataInputStream |
inputStream |
Constructor and Description |
---|
CodecDataInput(byte[] buf) |
CodecDataInput(com.google.protobuf.ByteString data) |
Modifier and Type | Method and Description |
---|---|
int |
available() |
int |
currentPos() |
boolean |
eof() |
void |
mark(int givenPos) |
int |
peekByte() |
boolean |
readBoolean() |
byte |
readByte() |
char |
readChar() |
double |
readDouble() |
float |
readFloat() |
void |
readFully(byte[] b) |
void |
readFully(byte[] b,
int off,
int len) |
int |
readInt() |
String |
readLine() |
long |
readLong() |
int |
readPartialUnsignedShort() |
short |
readShort() |
int |
readUnsignedByte() |
int |
readUnsignedShort() |
String |
readUTF() |
void |
reset() |
int |
size() |
int |
skipBytes(int n) |
byte[] |
toByteArray() |
protected final DataInputStream inputStream
protected final org.tikv.common.codec.CodecDataInput.UnSyncByteArrayInputStream backingStream
protected final byte[] backingBuffer
public CodecDataInput(com.google.protobuf.ByteString data)
public CodecDataInput(byte[] buf)
public void readFully(@Nonnull byte[] b, int off, int len)
public boolean readBoolean()
readBoolean
in interface DataInput
public int readUnsignedByte()
readUnsignedByte
in interface DataInput
public int readUnsignedShort()
readUnsignedShort
in interface DataInput
public int readPartialUnsignedShort()
public double readDouble()
readDouble
in interface DataInput
public int peekByte()
public int currentPos()
public void mark(int givenPos)
public void reset()
public boolean eof()
public int size()
public int available()
public byte[] toByteArray()
Copyright © 2024 PingCAP. All rights reserved.