- java.lang.Object
-
- org.redkale.convert.ObjectEncoder<ProtobufWriter,T>
-
- org.redkale.convert.pb.ProtobufObjectEncoder<T>
-
- 类型参数:
T
- T
- 所有已实现的接口:
Encodeable<ProtobufWriter,T>
,ProtobufEncodeable<ProtobufWriter,T>
- 直接已知子类:
ProtobufDynEncoder
public class ProtobufObjectEncoder<T> extends ObjectEncoder<ProtobufWriter,T> implements ProtobufEncodeable<ProtobufWriter,T>
- 作者:
- zhangjx
-
-
构造器概要
构造器 限定符 构造器 说明 protected
ProtobufObjectEncoder(Type type)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected ProtobufWriter
acceptWriter(ProtobufWriter out, EnMember member, T value)
int
computeSize(ProtobufWriter out, int tagSize, T value)
void
convertTo(ProtobufWriter out, EnMember member, T value)
void
convertTo(ProtobufWriter out, T value)
序列化操作protected void
initForEachEnMember(ConvertFactory factory, EnMember member)
protected void
offerWriter(ProtobufWriter parent, ProtobufWriter out)
-
从类继承的方法 org.redkale.convert.ObjectEncoder
afterInitEnMember, checkInited, getMembers, getType, getTypeClass, init, initFieldMember, setIndex, setPosition, setTag, setTagSize, toString
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
从接口继承的方法 org.redkale.convert.Encodeable
getType, specifyable
-
-
-
-
构造器详细资料
-
ProtobufObjectEncoder
protected ProtobufObjectEncoder(Type type)
-
-
方法详细资料
-
convertTo
public final void convertTo(ProtobufWriter out, T value)
从接口复制的说明:Encodeable
序列化操作- 指定者:
convertTo
在接口中Encodeable<ProtobufWriter,T>
- 覆盖:
convertTo
在类中ObjectEncoder<ProtobufWriter,T>
- 参数:
out
- Writervalue
- 对象
-
convertTo
public void convertTo(ProtobufWriter out, @Nullable EnMember member, T value)
- 指定者:
convertTo
在接口中ProtobufEncodeable<ProtobufWriter,T>
-
acceptWriter
@ClassDepends protected ProtobufWriter acceptWriter(ProtobufWriter out, EnMember member, T value)
-
offerWriter
@ClassDepends protected void offerWriter(ProtobufWriter parent, ProtobufWriter out)
-
initForEachEnMember
protected void initForEachEnMember(ConvertFactory factory, EnMember member)
- 覆盖:
initForEachEnMember
在类中ObjectEncoder<ProtobufWriter,T>
-
computeSize
public int computeSize(ProtobufWriter out, int tagSize, T value)
- 指定者:
computeSize
在接口中ProtobufEncodeable<ProtobufWriter,T>
-
-