package |
pomo |
inherited_from |
\POMO_Reader |
Methods
PHP4 constructor.
POMO_FileReader($filename)
PHP4 constructor.
POMO_Reader()
Inherited
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
is_resource()
is_resource() : boolean
inherited_from |
\POMO_Reader::is_resource() |
Returns
boolean
is_resource()
is_resource() : true
Inherited
pos()
pos() : integer
Inherited
read()
read(integer $bytes)
Parameters
$bytes
integer
read_all()
read_all() : string
Reads a 32bit Integer from the Stream
readint32() : mixed
Inherited
Returns
mixed
The 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
count How many elements should be read
Returns
mixed
Array 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($endian)
Inherited
Parameters
$endian
string '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