Static Public Member Functions | Static Private Member Functions | List of all members
com.google.protobuf.ExperimentalSerializationUtil Class Reference

Static Public Member Functions

static< T > T fromByteArray (byte[] data, Class< T > messageType)
 
static< T > T fromByteArray (byte[] data, Class< T > messageType, ExtensionRegistryLite extensionRegistry)
 
static< T > byte[] toByteArray (T msg) throws IOException
 
static< T > byte[] toByteArray (T msg, Schema< T > schema) throws IOException
 

Static Private Member Functions

static< T > T fromByteArrayFastPath (byte[] data, Class< T > messageType)
 

Detailed Description

Utilities for serialization.

Definition at line 38 of file ExperimentalSerializationUtil.java.

Member Function Documentation

◆ fromByteArray() [1/2]

static <T> T com.google.protobuf.ExperimentalSerializationUtil.fromByteArray ( byte[]  data,
Class< T messageType 
)
inlinestatic

Deserializes a message from the given byte array.

Definition at line 75 of file ExperimentalSerializationUtil.java.

◆ fromByteArray() [2/2]

static <T> T com.google.protobuf.ExperimentalSerializationUtil.fromByteArray ( byte[]  data,
Class< T messageType,
ExtensionRegistryLite  extensionRegistry 
)
inlinestatic

Deserializes a message from the given byte array using com.google.protobuf.BinaryReader with an extension registry and a customized Schema.

Definition at line 87 of file ExperimentalSerializationUtil.java.

◆ fromByteArrayFastPath()

static <T> T com.google.protobuf.ExperimentalSerializationUtil.fromByteArrayFastPath ( byte[]  data,
Class< T messageType 
)
inlinestaticprivate

Deserializes a lite message from the given byte array using fast path.

Definition at line 102 of file ExperimentalSerializationUtil.java.

◆ toByteArray() [1/2]

static <T> byte [] com.google.protobuf.ExperimentalSerializationUtil.toByteArray ( T  msg) throws IOException
inlinestatic

Serializes the given message to a byte array using com.google.protobuf.BinaryWriter.

Definition at line 43 of file ExperimentalSerializationUtil.java.

◆ toByteArray() [2/2]

static <T> byte [] com.google.protobuf.ExperimentalSerializationUtil.toByteArray ( T  msg,
Schema< T schema 
) throws IOException
inlinestatic

Serializes the given message to a byte array using com.google.protobuf.BinaryWriter with a customized Schema.

Definition at line 51 of file ExperimentalSerializationUtil.java.


The documentation for this class was generated from the following file:


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:07