PHP Class MessagePack\BufferUnpacker

Exibir arquivo Open project: rybakit/msgpack.php Class Usage Examples

Public Methods

Method Description
__construct ( integer | null $intOverflowMode = null )
append ( string $data )
getIntOverflowMode ( ) : integer
getTransformers ( ) : Collection | null
reset ( string $buffer = '' )
setIntOverflowMode ( integer $intOverflowMode )
setTransformers ( Collection $transformers = null )
tryUnpack ( ) : array
unpack ( ) : mixed

Private Methods

Method Description
handleIntOverflow ( $value )
unpackArray ( $size )
unpackExt ( $length )
unpackFloat32 ( )
unpackFloat64 ( )
unpackInt16 ( )
unpackInt32 ( )
unpackInt64 ( )
unpackInt8 ( )
unpackMap ( $size )
unpackStr ( $length )
unpackUint16 ( )
unpackUint32 ( )
unpackUint64 ( )
unpackUint8 ( )

Method Details

__construct() public method

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

append() public method

public append ( string $data )
$data string

getIntOverflowMode() public method

public getIntOverflowMode ( ) : integer
return integer

getTransformers() public method

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

reset() public method

public reset ( string $buffer = '' )
$buffer string

setIntOverflowMode() public method

public setIntOverflowMode ( integer $intOverflowMode )
$intOverflowMode integer

setTransformers() public method

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

tryUnpack() public method

public tryUnpack ( ) : array
return array

unpack() public method

public unpack ( ) : mixed
return mixed