[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-includes/pomo/ -> streams.php (summary)

(no description)

File Size: 353 lines (8 kb)
Included or required: 1 time
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: string $endian Set the endianness of the file. Accepts '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

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

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

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

strlen( $string )   X-Ref

return: int
param: string $string

str_split( $string, $chunk_size )   X-Ref

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

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

return: string|false Returns read string, otherwise false.
param: int $bytes

seekto( $pos )   X-Ref

return: bool
param: int $pos

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

return: string
param: string $bytes

seekto( $pos )   X-Ref

return: int
param: int $pos

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: Tue Dec 24 01:00:02 2024 Cross-referenced by PHPXref 0.7.1