package pomo
inherited_from \POMO_Reader

 Methods

PHP4 constructor.

POMO_FileReader($filename) 
deprecated 5.4.0 Use __construct() instead.
see

Parameters

$filename

PHP4 constructor.

POMO_Reader() 
Inherited
deprecated 5.4.0 Use __construct() instead.
see

PHP5 constructor.

__construct(string $filename) 
inherited_from \POMO_Reader::__construct()

Parameters

$filename

string

PHP5 constructor.

__construct() 
Inherited

close()

close() : boolean
inherited_from \POMO_Reader::close()

Returns

boolean

close()

close() : true
Inherited

Returns

true

feof()

feof() : boolean

Returns

boolean

is_resource()

is_resource() : boolean
inherited_from \POMO_Reader::is_resource()

Returns

boolean

is_resource()

is_resource() : true
Inherited

Returns

true

pos()

pos() : integer
Inherited

Returns

integer

read()

read(integer $bytes) : string | false

Parameters

$bytes

integer

Returns

stringfalseReturns read string, otherwise false.

read_all()

read_all() : string

Returns

string

Reads a 32bit Integer from the Stream

readint32() : mixed
Inherited

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
Inherited

Parameters

$count

integer

How many elements should be read

Returns

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

seekto()

seekto(integer $pos) : boolean

Parameters

$pos

integer

Returns

boolean

Sets the endianness of the file.

setEndian(string $endian) 
Inherited

Parameters

$endian

string

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

str_split()

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

Parameters

$string

string

$chunk_size

integer

Returns

array

strlen()

strlen(string $string) : integer
Inherited

Parameters

$string

string

Returns

integer

substr()

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

Parameters

$string

string

$start

integer

$length

integer

Returns

string

 Properties

 

$_post

$_post 

Default

''
 

$endian

$endian 

Default

'little'