- java.lang.Object
-
- org.redkale.convert.Writer
-
- org.redkale.convert.pb.ProtobufWriter
-
- org.redkale.convert.pb.ProtobufByteBufferWriter
-
public class ProtobufByteBufferWriter extends ProtobufWriter
- 作者:
- zhangjx
-
-
字段概要
-
从类继承的字段 org.redkale.convert.pb.ProtobufWriter
child, CHILD_SIZE, count, DEFAULT_SIZE, EMPTY_BYTES, enumtostring, parent, streamArrayCache, TENTHOUSAND_FIXED32_BYTES, TENTHOUSAND_FIXED32_BYTES2, TENTHOUSAND_FIXED64_BYTES, TENTHOUSAND_FIXED64_BYTES2, TENTHOUSAND_MAX, TENTHOUSAND_SINT32_BYTES, TENTHOUSAND_SINT32_BYTES2, TENTHOUSAND_SINT64_BYTES, TENTHOUSAND_SINT64_BYTES2, TENTHOUSAND_UINT_BYTES, TENTHOUSAND_UINT_BYTES2
-
从类继承的字段 org.redkale.convert.Writer
comma, features, mapFieldFunc, objExtFunc, objFieldFunc, specificObjectType
-
-
构造器概要
构造器 构造器 说明 ProtobufByteBufferWriter(int features, boolean enumtostring, Supplier<ByteBuffer> supplier)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected int
expand(int byteLength)
void
offerChild(ProtobufWriter child)
ProtobufWriter
pollChild()
protected boolean
recycle()
ByteBuffer[]
toBuffers()
ByteArray
toByteArray()
String
toString()
protected void
writeSelfLength(int value)
void
writeTo(byte ch)
void
writeTo(byte[] chs, int start, int len)
protected void
writeUInt32(int value)
protected void
writeUInt64(long value)
-
从类继承的方法 org.redkale.convert.pb.ProtobufWriter
clear, configFieldFunc, enumtostring, fixed32, fixed64, getStreamArray, length, mapFieldFunc, objExtFunc, objFieldFunc, putStreamArray, sint32, sint64, uint32, uint64, withFeatures, writeArrayB, writeArrayE, writeArrayMark, writeBoolean, writeBools, writeBools, writeBools, writeBools, writeByte, writeByteArray, writeBytes, writeBytes, writeBytes, writeBytes, writeChar, writeChars, writeChars, writeChars, writeChars, writeDouble, writeDoubles, writeDoubles, writeDoubles, writeDoubles, writeField, writeField, writeFieldBoolsValue, writeFieldBytesValue, writeFieldCharsValue, writeFieldDoublesValue, writeFieldFloatsValue, writeFieldIntsValue, writeFieldLongsValue, writeFieldShortsValue, writeFieldStringsValue, writeFieldValue, writeFieldValue, writeFieldValue, writeFieldValue, writeFieldValue, writeFieldValue, writeFieldValue, writeFieldValue, writeFieldValue, writeFieldValue, writeFieldValue, writeFieldValue, writeFieldValue, writeFieldValue, writeFieldValue, writeFieldValue, writeFieldValue, writeFieldValue, writeFieldValue, writeFieldValue, writeFieldValue, writeFieldValue, writeFieldValue, writeFieldValue, writeFieldValue, writeFieldValue, writeFieldValue, writeFieldValue, writeFieldValue, writeFieldValue, writeFieldValue, writeFieldValue, writeFieldValue, writeFieldValue, writeFieldValue, writeFieldValue, writeFixed32, writeFixed64, writeFloat, writeFloats, writeFloats, writeFloats, writeFloats, writeInt, writeInts, writeInts, writeInts, writeInts, writeLength, writeLong, writeLongs, writeLongs, writeLongs, writeLongs, writeMapB, writeMapE, writeMapMark, writeNull, writeObjectB, writeObjectE, writeObjectField, writeShort, writeShorts, writeShorts, writeShorts, writeShorts, writeStandardString, writeString, writeStrings, writeStrings, writeTag, writeTo, writeWrapper
-
从类继承的方法 org.redkale.convert.Writer
getFeatures, nullable, specificObjectType, specificObjectType, tiny, writeObjectField, writeObjectNull
-
-
-
-
构造器详细资料
-
ProtobufByteBufferWriter
public ProtobufByteBufferWriter(int features, boolean enumtostring, Supplier<ByteBuffer> supplier)
-
-
方法详细资料
-
recycle
protected boolean recycle()
- 覆盖:
recycle
在类中ProtobufWriter
-
pollChild
public final ProtobufWriter pollChild()
- 指定者:
pollChild
在类中ProtobufWriter
-
offerChild
public final void offerChild(ProtobufWriter child)
- 指定者:
offerChild
在类中ProtobufWriter
-
writeSelfLength
protected final void writeSelfLength(int value)
- 指定者:
writeSelfLength
在类中ProtobufWriter
-
toBuffers
public ByteBuffer[] toBuffers()
-
toByteArray
public ByteArray toByteArray()
- 指定者:
toByteArray
在类中ProtobufWriter
-
expand
protected int expand(int byteLength)
- 指定者:
expand
在类中ProtobufWriter
-
writeTo
public void writeTo(byte ch)
- 指定者:
writeTo
在类中ProtobufWriter
-
writeTo
public void writeTo(byte[] chs, int start, int len)
- 指定者:
writeTo
在类中ProtobufWriter
-
writeUInt32
protected final void writeUInt32(int value)
- 指定者:
writeUInt32
在类中ProtobufWriter
-
writeUInt64
protected final void writeUInt64(long value)
- 指定者:
writeUInt64
在类中ProtobufWriter
-
toString
public String toString()
- 覆盖:
toString
在类中ProtobufWriter
-
-