PHP Class MessagePack\Packer

Datei anzeigen Open project: rybakit/msgpack.php Class Usage Examples

Public Methods

Method Description
__construct ( integer | null $typeDetectionMode = null )
getTransformers ( ) : Collection | null
pack ( $value )
packArray ( array $array )
packBin ( $str )
packBool ( $val )
packExt ( Ext $ext )
packFloat ( $num )
packInt ( $num )
packMap ( array $map )
packNil ( )
packStr ( $str )
setTransformers ( Collection $transformers = null )
setTypeDetectionMode ( integer $mode )

Private Methods

Method Description
packArrayHeader ( $size )
packMapHeader ( $size )
packUint64 ( $code, $num )

Method Details

__construct() public method

public __construct ( integer | null $typeDetectionMode = null )
$typeDetectionMode integer | null

getTransformers() public method

public getTransformers ( ) : Collection | null
return MessagePack\TypeTransformer\Collection | null

pack() public method

public pack ( $value )

packArray() public method

public packArray ( array $array )
$array array

packBin() public method

public packBin ( $str )

packBool() public method

public packBool ( $val )

packExt() public method

public packExt ( Ext $ext )
$ext Ext

packFloat() public method

public packFloat ( $num )

packInt() public method

public packInt ( $num )

packMap() public method

public packMap ( array $map )
$map array

packNil() public method

public packNil ( )

packStr() public method

public packStr ( $str )

setTransformers() public method

public setTransformers ( Collection $transformers = null )
$transformers MessagePack\TypeTransformer\Collection

setTypeDetectionMode() public method

public setTypeDetectionMode ( integer $mode )
$mode integer