PHP Класс Protobuf\Message

Показать файл Открыть проект

Открытые методы

Метод Описание
clear ( ) Reset all fields back to the initial values.
extensions ( ) : ExtensionFieldMap Obtain the map of extensions in this message.
fromStream ( Stream | resource | string $stream, Configuration $configuration = null ) : Message Creates message from the given stream.
merge ( Message $message ) Merge $context into the message being built.
readFrom ( Protobuf\ReadContext $context ) Serializes the message and returns a stream containing its bytes.
serializedSize ( ComputeSizeContext $context ) : integer Compute the number of bytes that would be needed to encode the message
toStream ( Configuration $configuration = null ) : Stream Serializes the message and returns a stream containing its bytes.
unknownFieldSet ( ) : UnknownFieldSet Obtain the list of unknown fields in this message.
writeTo ( WriteContext $context ) : Stream Encodes and writes the message

Описание методов

clear() публичный Метод

Reset all fields back to the initial values.
public clear ( )

extensions() публичный Метод

Obtain the map of extensions in this message.
public extensions ( ) : ExtensionFieldMap
Результат Protobuf\Extension\ExtensionFieldMap

fromStream() публичный статический Метод

Creates message from the given stream.
public static fromStream ( Stream | resource | string $stream, Configuration $configuration = null ) : Message
$stream Stream | resource | string
$configuration Configuration
Результат Message

merge() публичный Метод

Merge $context into the message being built.
public merge ( Message $message )
$message Message

readFrom() публичный Метод

Serializes the message and returns a stream containing its bytes.
public readFrom ( Protobuf\ReadContext $context )
$context Protobuf\ReadContext

serializedSize() публичный Метод

Compute the number of bytes that would be needed to encode the message
public serializedSize ( ComputeSizeContext $context ) : integer
$context ComputeSizeContext
Результат integer

toStream() публичный Метод

Serializes the message and returns a stream containing its bytes.
public toStream ( Configuration $configuration = null ) : Stream
$configuration Configuration
Результат Stream

unknownFieldSet() публичный Метод

Obtain the list of unknown fields in this message.
public unknownFieldSet ( ) : UnknownFieldSet
Результат UnknownFieldSet

writeTo() публичный Метод

Encodes and writes the message
public writeTo ( WriteContext $context ) : Stream
$context WriteContext
Результат Stream