[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-forums/bbpress/bb-includes/backpress/pomo/ -> streams.php (summary)

(no description)

File Size: 315 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 5 classes

POMO_Reader:: (11 methods):
  __construct()
  POMO_Reader()
  setEndian()
  readint32()
  readint32array()
  substr()
  strlen()
  str_split()
  pos()
  is_resource()
  close()

POMO_FileReader:: (8 methods):
  __construct()
  POMO_FileReader()
  read()
  seekto()
  is_resource()
  feof()
  close()
  read_all()

POMO_StringReader:: (6 methods):
  __construct()
  POMO_StringReader()
  read()
  seekto()
  length()
  read_all()

POMO_CachedFileReader:: (2 methods):
  __construct()
  POMO_CachedFileReader()

POMO_CachedIntFileReader:: (2 methods):
  __construct()
  POMO_CachedIntFileReader()


Class: POMO_Reader  - X-Ref

Classes, which help reading streams of data from files.
Based on the classes from Danilo Segan <danilo@kvota.net>

__construct()   X-Ref
PHP5 constructor.


POMO_Reader()   X-Ref
PHP4 constructor.


setEndian($endian)   X-Ref
Sets the endianness of the file.

param: $endian string 'big' or 'little'

readint32()   X-Ref
Reads a 32bit Integer from the Stream

return: mixed The integer, corresponding to the next 32 bits from

readint32array($count)   X-Ref
Reads an array of 32-bit Integers from the Stream

param: integer count How many elements should be read
return: mixed Array of integers or false if there isn't

substr($string, $start, $length)   X-Ref

param: string $string
param: int    $start
param: int    $length
return: string

strlen($string)   X-Ref

param: string $string
return: int

str_split($string, $chunk_size)   X-Ref

param: string $string
param: int    $chunk_size
return: array

pos()   X-Ref

return: int

is_resource()   X-Ref

return: true

close()   X-Ref

return: true

Class: POMO_FileReader  - X-Ref

__construct( $filename )   X-Ref

param: string $filename

POMO_FileReader( $filename )   X-Ref
PHP4 constructor.


read($bytes)   X-Ref

param: int $bytes

seekto($pos)   X-Ref

param: int $pos
return: boolean

is_resource()   X-Ref

return: bool

feof()   X-Ref

return: bool

close()   X-Ref

return: bool

read_all()   X-Ref

return: string

Class: POMO_StringReader  - X-Ref

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

__construct( $str = '' )   X-Ref
PHP5 constructor.


POMO_StringReader( $str = '' )   X-Ref
PHP4 constructor.


read($bytes)   X-Ref

param: string $bytes
return: string

seekto($pos)   X-Ref

param: int $pos
return: int

length()   X-Ref

return: int

read_all()   X-Ref

return: string

Class: POMO_CachedFileReader  - X-Ref

Reads the contents of the file in the beginning.

__construct( $filename )   X-Ref
PHP5 constructor.


POMO_CachedFileReader( $filename )   X-Ref
PHP4 constructor.


Class: POMO_CachedIntFileReader  - X-Ref

Reads the contents of the file in the beginning.

__construct( $filename )   X-Ref
PHP5 constructor.


POMO_CachedIntFileReader( $filename )   X-Ref
PHP4 constructor.




Generated: Sun Dec 22 01:00:54 2024 Cross-referenced by PHPXref 0.7.1