\POMO_StringReader

Provides file-like methods for manipulating a string instead of a physical file.

Summary

Methods
Properties
Constants
POMO_StringReader()
read()
seekto()
length()
read_all()
POMO_Reader()
setEndian()
readint32()
readint32array()
substr()
strlen()
str_split()
pos()
is_resource()
close()
$_str
$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

$_str

$_str

$endian

$endian

$_post

$_post

Methods

POMO_StringReader()

POMO_StringReader( $str)

Parameters

$str

read()

read( $bytes)

Parameters

$bytes

seekto()

seekto( $pos)

Parameters

$pos

length()

length()

read_all()

read_all()

POMO_Reader()

POMO_Reader()

setEndian()

setEndian(mixed $endian)

Sets the endianness of the file.

Parameters

mixed $endian

string 'big' or 'little'

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( $count) : mixed

Reads an array of 32-bit Integers from the Stream

Parameters

$count

Returns

mixed —

Array of integers or false if there isn't

enough data or on error

substr()

substr( $string,  $start,  $length)

Parameters

$string
$start
$length

strlen()

strlen( $string)

Parameters

$string

str_split()

str_split( $string,  $chunk_size)

Parameters

$string
$chunk_size

pos()

pos()

is_resource()

is_resource()

close()

close()