public class ProtobufWireFormatEncoder extends Object
| Constructor and Description |
|---|
ProtobufWireFormatEncoder() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
encode(@NonNull com.google.protobuf.Message message,
com.google.protobuf.Descriptors.FileDescriptor schemaFileDescriptor)
Encodes the message index as a zig-zag encoded variable size int into Byte stream.
|
public byte[] encode(@NonNull
@NonNull com.google.protobuf.Message message,
@NonNull
com.google.protobuf.Descriptors.FileDescriptor schemaFileDescriptor)
message - Protobuf message.schemaFileDescriptor - Protobuf schema file descriptor.Copyright © 2024. All rights reserved.