- java.lang.Object
-
- org.redkale.convert.Writer
-
- org.redkale.convert.pb.ProtobufWriter
-
- org.redkale.convert.pb.ProtobufBytesWriter
-
public class ProtobufBytesWriter 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
-
-
构造器概要
构造器 限定符 构造器 说明 ProtobufBytesWriter()
protected
ProtobufBytesWriter(byte[] bs)
ProtobufBytesWriter(int size)
ProtobufBytesWriter(ByteTuple tuple)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 void
completed(ConvertBytesHandler handler, Consumer<ProtobufWriter> callback)
void
directTo(ByteArray array)
将本对象的内容引用复制给arrayprotected int
expand(int len)
void
offerChild(ProtobufWriter child)
ProtobufWriter
pollChild()
protected boolean
recycle()
byte[]
toArray()
ByteArray
toByteArray()
void
writePlaceholderTo(int length)
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, toString, 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
-
-
-
-
构造器详细资料
-
ProtobufBytesWriter
protected ProtobufBytesWriter(byte[] bs)
-
ProtobufBytesWriter
public ProtobufBytesWriter()
-
ProtobufBytesWriter
public ProtobufBytesWriter(int size)
-
ProtobufBytesWriter
public ProtobufBytesWriter(ByteTuple tuple)
-
-
方法详细资料
-
recycle
protected boolean recycle()
- 覆盖:
recycle
在类中ProtobufWriter
-
pollChild
public ProtobufWriter pollChild()
- 指定者:
pollChild
在类中ProtobufWriter
-
offerChild
public void offerChild(ProtobufWriter child)
- 指定者:
offerChild
在类中ProtobufWriter
-
writeSelfLength
protected final void writeSelfLength(int value)
- 指定者:
writeSelfLength
在类中ProtobufWriter
-
directTo
public void directTo(ByteArray array)
将本对象的内容引用复制给array- 参数:
array
- ByteArray
-
completed
public void completed(ConvertBytesHandler handler, Consumer<ProtobufWriter> callback)
-
toArray
public byte[] toArray()
-
toByteArray
public ByteArray toByteArray()
- 指定者:
toByteArray
在类中ProtobufWriter
-
writePlaceholderTo
public void writePlaceholderTo(int length)
-
expand
protected int expand(int len)
- 指定者:
expand
在类中ProtobufWriter
-
writeTo
public void writeTo(byte ch)
- 指定者:
writeTo
在类中ProtobufWriter
-
writeTo
public void writeTo(byte[] chs, int start, int len)
- 指定者:
writeTo
在类中ProtobufWriter
-
writeUInt32
protected void writeUInt32(int value)
- 指定者:
writeUInt32
在类中ProtobufWriter
-
writeUInt64
protected void writeUInt64(long value)
- 指定者:
writeUInt64
在类中ProtobufWriter
-
-