PHP Class 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.
Author: Ronen Botzer ([email protected])
Inheritance: implements Serializable
Afficher le fichier Open project: aerospike/aerospike-client-php

Méthodes publiques

Свойство Type Description
$s string The container for the binary-string

Méthodes publiques

Méthode Description
__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.

Method Details

__construct() public méthode

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

__toString() public méthode

Returns the binary-string held in the \Aerospike\Bytes object.
public __toString ( ) : string
Résultat string

serialize() public méthode

Called by serialize()
public serialize ( ) : string
Résultat string

unserialize() public méthode

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() public static méthode

Unwraps an \Aerospike\Bytes object, returning the binary-string inside.
public static unwrap ( Bytes $bytes_wrap ) : string
$bytes_wrap Bytes
Résultat string

Property Details

$s public_oe property

The container for the binary-string
public string $s
Résultat string