Reads the contents of the file in the beginning.
| package | pomo |
|---|---|
| inherited_from | \POMO_StringReader |
POMO_CachedFileReader($filename)
POMO_StringReader($str = '')
__construct($filename)
| inherited_from | \POMO_StringReader::__construct() |
|---|
__construct()
close() : true
trueis_resource() : true
truelength() : integer
integerpos() : integer
integerread(string $bytes) : string
string
stringread_all() : string
stringreadint32() : mixed
mixedThe integer, corresponding to the next 32 bits from
the stream of false if there are not enough bytes or on errorreadint32array(integer $count) : mixed
integerHow many elements should be read
mixedArray of integers or false if there isn't
enough data or on errorseekto(integer $pos) : integer
integer
integersetEndian(string $endian)
stringSet the endianness of the file. Accepts 'big', or 'little'.
str_split(string $string, integer $chunk_size) : array
string
integer
arraystrlen(string $string) : integer
string
integersubstr(string $string, integer $start, integer $length) : string
string
integer
integer
string$_post
''$_str
''$endian
'little'