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.
Mostrar archivo
Open project: aerospike/aerospike-client-php
Public Properties
Property |
Type |
Description |
|
$s |
string |
The container for the binary-string |
|
Public Methods
Method |
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 method
Constructor for \Aerospike\Bytes class.
__toString()
public method
Returns the binary-string held in the \Aerospike\Bytes object.
serialize()
public method
unserialize()
public method
Re-wraps the binary-string when called by unserialize().
unwrap()
public static method
Unwraps an \Aerospike\Bytes object, returning the binary-string inside.
Property Details
The container for the binary-string
public string $s |
return |
string |
|