[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

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

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

Version: $Id: streams.php 1157 2015-11-20 04:30:11Z dd32 $
File Size: 360 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

__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

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

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

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

strlen( $input_string )   X-Ref

param: string $input_string
return: int

str_split( $input_string, $chunk_size )   X-Ref

param: string $input_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
return: string|false Returns read string, otherwise false.

seekto( $pos )   X-Ref

param: int $pos
return: bool

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 : Sat Apr 20 08:20:01 2024 Cross-referenced by PHPXref