package pomo

 Methods

PHP4 constructor.

POMO_Reader() 

PHP5 constructor.

__construct() 

close()

close() : true

Returns

true

is_resource()

is_resource() : true

Returns

true

pos()

pos() : integer

Returns

integer

Reads a 32bit Integer from the Stream

readint32() : mixed

Returns

mixedThe integer, corresponding to the next 32 bits from the stream of false if there are not enough bytes or on error

Reads an array of 32-bit Integers from the Stream

readint32array(integer $count) : mixed

Parameters

$count

integer

How many elements should be read

Returns

mixedArray of integers or false if there isn't enough data or on error

Sets the endianness of the file.

setEndian(string $endian) 

Parameters

$endian

string

Set the endianness of the file. Accepts 'big', or 'little'.

str_split()

str_split(string $string, integer $chunk_size) : array

Parameters

$string

string

$chunk_size

integer

Returns

array

strlen()

strlen(string $string) : integer

Parameters

$string

string

Returns

integer

substr()

substr(string $string, integer $start, integer $length) : string

Parameters

$string

string

$start

integer

$length

integer

Returns

string

 Properties

 

$_post

$_post 

Default

''
 

$endian

$endian 

Default

'little'