PHP Interface Protobuf\Serializer

Author: Fabio B. Silva ([email protected])
Show file Open project: protobuf-php/protobuf

Public Methods

Method 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 method

Serializes the given message.
public serialize ( Message $message ) : Stream
$message Message
return Stream

unserialize() public method

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