\POMO_Reader

Summary

Methods
Properties
Constants
__construct()
setEndian()
readint32()
readint32array()
substr()
strlen()
str_split()
pos()
is_resource()
close()
$endian
$_post
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$endian

$endian

$_post

$_post

Methods

__construct()

__construct() : mixed

Returns

mixed —

setEndian()

setEndian( $endian) : mixed

Sets the endianness of the file.

Parameters

$endian

string 'big' or 'little'

Returns

mixed —

readint32()

readint32() : mixed

Reads a 32bit Integer from the Stream

Returns

mixed —

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

readint32array()

readint32array(mixed  $count) : mixed

Reads an array of 32-bit Integers from the Stream

Parameters

mixed $count

Returns

mixed —

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

substr()

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

Parameters

string $string
int $start
int $length

Returns

string —

strlen()

strlen(string  $string) : int

Parameters

string $string

Returns

int —

str_split()

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

Parameters

string $string
int $chunk_size

Returns

array —

pos()

pos() : mixed

Returns

mixed —

is_resource()

is_resource() : mixed

Returns

mixed —

close()

close() : mixed

Returns

mixed —