See: Description
| Interface | Description |
|---|---|
| InputEx |
Forked and modified from protostuff
An Input lets an application read primitive data types and objects from a source of data. |
| OutputEx |
Forked and modified from protostuff
difference for scalar types:
OutputEx OutputEx
writeXXX all scenes repeated not packed, write with tag, not ignore default value
writePackedXXX --- repeated packed, write without tag, not ignore default value
writeScalarXXX --- not repeated field, not write default value
|
| SchemaEx<T> |
Forked and modified from protostuff
Handles the serialization and deserialization of a message/object tied to this.
|
| SchemaReader<T> | |
| SchemaWriter<T> |
| Class | Description |
|---|---|
| ByteArrayInputEx |
Forked and modified from protostuff
Reads and decodes protocol buffer message fields from an internal byte array buffer.
|
| ProtobufOutputEx |
Forked and modified from protostuff
Protobuf serialization where the messages must be fully buffered on memory before it can be written to the socket ( OutputStream). |
classes in protostuff are "final" or not all suitable for ServiceComb
1.final
io.protostuff.ProtobufOutputEx
io.protostuff.ByteArrayInput
2.not suitable
1) io.protostuff.OutputEx
fieldNumber changed to tag, avoid makeTag every time
not support write packed value
not support ignore default scalar value
2) io.protostuff.SchemaEx
make it simpler
3) codec of map is not compatible to protobuf
so we must copy and modified them
Copyright © 2017–2019 The Apache Software Foundation. All rights reserved.