Reads the contents of the file in the beginning.
package | pomo |
---|---|
inherited_from | \POMO_CachedFileReader |
POMO_CachedFileReader($filename)
POMO_CachedIntFileReader($filename)
POMO_StringReader($str = ''
)
__construct($filename)
inherited_from | \POMO_CachedFileReader::__construct() |
---|
__construct()
close() : true
true
is_resource() : true
true
length() : integer
integer
pos() : integer
integer
read(string $bytes) : string
string
string
read_all() : string
string
readint32() : mixed
mixed
The integer, corresponding to the next 32 bits from
the stream of false if there are not enough bytes or on errorreadint32array(integer $count) : mixed
integer
How many elements should be read
mixed
Array of integers or false if there isn't
enough data or on errorseekto(integer $pos) : integer
integer
integer
setEndian(string $endian)
string
Set the endianness of the file. Accepts 'big', or 'little'.
str_split(string $string, integer $chunk_size) : array
string
integer
array
strlen(string $string) : integer
string
integer
substr(string $string, integer $start, integer $length) : string
string
integer
integer
string
$_post
''
$_str
''
$endian
'little'