PHP Interface Protobuf\Serializer

Author: Fabio B. Silva ([email protected])
Afficher le fichier Open project: protobuf-php/protobuf

Méthodes publiques

Méthode Description
serialize ( Message $message ) : Stream Serializes the given message.
unserialize ( string $class, Stream | resource | string $stream ) : Message Deserializes the given data to the specified message.

Method Details

serialize() public méthode

Serializes the given message.
public serialize ( Message $message ) : Stream
$message Message
Résultat Stream

unserialize() public méthode

Deserializes the given data to the specified message.
public unserialize ( string $class, Stream | resource | string $stream ) : Message
$class string
$stream Stream | resource | string
Résultat Message