public class CodecDataInput extends Object implements DataInput
| 限定符和类型 | 字段和说明 |
|---|---|
protected byte[] |
backingBuffer |
protected com.pingcap.tikv.codec.CodecDataInput.UnSyncByteArrayInputStream |
backingStream |
protected DataInputStream |
inputStream |
| 构造器和说明 |
|---|
CodecDataInput(byte[] buf) |
CodecDataInput(org.tikv.shade.com.google.protobuf.ByteString data) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
available() |
int |
currentPos() |
int |
cutOne()
peek the first encoded value and return its length
|
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 com.pingcap.tikv.codec.CodecDataInput.UnSyncByteArrayInputStream backingStream
protected final byte[] backingBuffer
public CodecDataInput(org.tikv.shade.com.google.protobuf.ByteString data)
public CodecDataInput(byte[] buf)
public boolean readBoolean()
readBoolean 在接口中 DataInputpublic int readUnsignedByte()
readUnsignedByte 在接口中 DataInputpublic int readUnsignedShort()
readUnsignedShort 在接口中 DataInputpublic int readPartialUnsignedShort()
public double readDouble()
readDouble 在接口中 DataInputpublic int cutOne()
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 © 2023 PingCAP. All rights reserved.