PHP Class MessagePack, zephir

显示文件 Open project: phalcon/zephir Class Usage Examples

Public Methods

Method Description
__construct ( boolean $opt = null ) MessagePack constructor.
pack ( mixed $value ) : string
setOption ( integer $option, boolean $value )
unpack ( string $str, mixed $object = null ) : mixed
unpacker ( ) : MessagePackUnpacker

Method Details

__construct() public method

MessagePack constructor.
public __construct ( boolean $opt = null )
$opt boolean

pack() public method

public pack ( mixed $value ) : string
$value mixed
return string

setOption() public method

public setOption ( integer $option, boolean $value )
$option integer
$value boolean

unpack() public method

public unpack ( string $str, mixed $object = null ) : mixed
$str string
$object mixed
return mixed

unpacker() public method

public unpacker ( ) : MessagePackUnpacker
return MessagePackUnpacker