|
The EventBuffer classIntroductionEventBuffer represents Libevent's "evbuffer", an utility functionality for buffered I/O. Event buffers are meant to be generally useful for doing the "buffer" part of buffered network I/O. Class synopsis
EventBuffer
class EventBuffer
{
/* Constants */
const
int
EventBuffer::EOL_ANY = 0;
const
int
EventBuffer::EOL_CRLF = 1;
const
int
EventBuffer::EOL_CRLF_STRICT = 2;
const
int
EventBuffer::EOL_LF = 3;
const
int
EventBuffer::PTR_SET = 0;
const
int
EventBuffer::PTR_ADD = 1;
/* Properties */
public
readonly
int
$length;
public
readonly
int
$contiguous_space;
/* Methods */
public
bool add(
string
$data
)public
bool addBuffer(
EventBuffer
$buf
)public
int appendFrom(
EventBuffer
$buf
,
int
$len
)public
__construct()
public
int copyout(
string
&$data
,
int
$max_bytes
)public
bool drain(
int
$len
)public
void enableLocking()
public
bool expand(
int
$len
)public
bool freeze(
bool
$at_front
)public
void lock()
public
bool prepend(
string
$data
)public
bool prependBuffer(
EventBuffer
$buf
)public
string pullup(
int
$size
)public
string read(
int
$max_bytes
)public
int read(
mixed
$fd
,
int
$howmuch
)public
string readLine(
int
$eol_style
)public
mixed search(
string
$what
,
int
$start
= -1
,
int
$end
= -1
)public
mixed searchEol(
int
$start
= -1
,
int
$eol_style
=
EventBuffer::EOL_ANY
)public
string substr(
int
$start
,
int
$length
= ?)public
bool unfreeze(
bool
$at_front
)public
bool unlock()
public
int write(
mixed
}$fd
,
int
$howmuch
= ?)Properties
Predefined Constants
|