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
파일 보기 프로젝트 열기: aerospike/aerospike-client-php

공개 프로퍼티들

프로퍼티 타입 설명
$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