PHP Class Kraken\Util\Buffer\Buffer

Inheritance: implements Kraken\Util\Buffer\BufferInterface
Show file Open project: kraken-php/framework Class Usage Examples

Public Methods

Method Description
__construct ( string $data = '' )
__destruct ( )
__toString ( )
count ( )
drain ( )
getIterator ( )
insert ( $string, $position )
isEmpty ( )
length ( )
offsetExists ( $index )
offsetGet ( $index )
offsetSet ( $index, $data )
offsetUnset ( $index )
peek ( $length, $offset )
pop ( $length )
push ( $data )
remove ( $length, $offset )
replace ( $search, $replace )
search ( $string, $reverse = false )
shift ( $length )
unshift ( $data )

Method Details

__construct() public method

public __construct ( string $data = '' )
$data string

__destruct() public method

public __destruct ( )

__toString() public method

public __toString ( )

count() public method

public count ( )

drain() public method

public drain ( )

getIterator() public method

public getIterator ( )

insert() public method

public insert ( $string, $position )

isEmpty() public method

public isEmpty ( )

length() public method

public length ( )

offsetExists() public method

public offsetExists ( $index )

offsetGet() public method

public offsetGet ( $index )

offsetSet() public method

public offsetSet ( $index, $data )

offsetUnset() public method

public offsetUnset ( $index )

peek() public method

public peek ( $length, $offset )

pop() public method

public pop ( $length )

push() public method

public push ( $data )

remove() public method

public remove ( $length, $offset )

replace() public method

public replace ( $search, $replace )

shift() public method

public shift ( $length )

unshift() public method

public unshift ( $data )