public class CodecDataOutput extends Object implements DataOutput
Modifier and Type | Field and Description |
---|---|
protected ByteArrayOutputStream |
byteArray |
protected DataOutputStream |
s |
Constructor and Description |
---|
CodecDataOutput() |
CodecDataOutput(int size) |
Modifier and Type | Method and Description |
---|---|
void |
reset() |
int |
size() |
byte[] |
toBytes() |
com.google.protobuf.ByteString |
toByteString() |
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
void |
writeBoolean(boolean v) |
void |
writeByte(int v) |
void |
writeBytes(String v) |
void |
writeChar(int v) |
void |
writeChars(String v) |
void |
writeDouble(double v) |
void |
writeFloat(float v) |
void |
writeInt(int v) |
void |
writeLong(long v) |
void |
writeShort(int v) |
void |
writeUTF(String v) |
protected final DataOutputStream s
protected final ByteArrayOutputStream byteArray
public CodecDataOutput()
public CodecDataOutput(int size)
public void write(int b)
write
in interface DataOutput
public void write(byte[] b)
write
in interface DataOutput
public void write(byte[] b, int off, int len)
write
in interface DataOutput
public void writeBoolean(boolean v)
writeBoolean
in interface DataOutput
public void writeByte(int v)
writeByte
in interface DataOutput
public void writeShort(int v)
writeShort
in interface DataOutput
public void writeChar(int v)
writeChar
in interface DataOutput
public void writeInt(int v)
writeInt
in interface DataOutput
public void writeLong(long v)
writeLong
in interface DataOutput
public void writeFloat(float v)
writeFloat
in interface DataOutput
public void writeDouble(double v)
writeDouble
in interface DataOutput
public void writeBytes(String v)
writeBytes
in interface DataOutput
public void writeChars(String v)
writeChars
in interface DataOutput
public void writeUTF(String v)
writeUTF
in interface DataOutput
public byte[] toBytes()
public com.google.protobuf.ByteString toByteString()
public int size()
public void reset()
Copyright © 2024 PingCAP. All rights reserved.