PHP Класс Aerospike\Bytes

This ensures that the string will not get truncated or otherwise lose data. The main difference is that strings in the Aerospike cluster can have a secondary index built over them, and queries executed against the index, while bytes data cannot.
Автор: Ronen Botzer ([email protected])
Наследование: implements Serializable
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$s string The container for the binary-string

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

Метод Описание
__construct ( string $bin_str ) Constructor for \Aerospike\Bytes class.
__toString ( ) : string Returns the binary-string held in the \Aerospike\Bytes object.
serialize ( ) : string Returns a serialized representation of the binary-string.
unserialize ( string $bin_str ) Re-wraps the binary-string when called by unserialize().
unwrap ( Bytes $bytes_wrap ) : string Unwraps an \Aerospike\Bytes object, returning the binary-string inside.

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

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

Constructor for \Aerospike\Bytes class.
public __construct ( string $bin_str )
$bin_str string a PHP binary-string such as gzdeflate() produces.

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

Returns the binary-string held in the \Aerospike\Bytes object.
public __toString ( ) : string
Результат string

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

Called by serialize()
public serialize ( ) : string
Результат string

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

Re-wraps the binary-string when called by unserialize().
public unserialize ( string $bin_str )
$bin_str string a PHP binary-string. Called by unserialize().

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

Unwraps an \Aerospike\Bytes object, returning the binary-string inside.
public static unwrap ( Bytes $bytes_wrap ) : string
$bytes_wrap Bytes
Результат string

Описание свойств

$s публичное свойство

The container for the binary-string
public string $s
Результат string