yxorP Documentation

NoSeekStream
in package
implements StreamInterface Uses AStreamDecoratorTrait

Interfaces, Classes, Traits and Enums

StreamInterface
Describes a data stream.

Table of Contents

__call()  : mixed
__construct()  : mixed
__get()  : mixed
__toString()  : mixed
close()  : mixed
detach()  : mixed
eof()  : bool
getContents()  : string
getMetadata()  : mixed
getSize()  : int|null
isReadable()  : bool
isSeekable()  : bool
Returns whether or not the stream is seekable.
isWritable()  : bool
read()  : string
rewind()  : mixed
seek()  : mixed
Seek to a position in the stream.
tell()  : int
write()  : int
createStream()  : mixed

Methods

__call()

public __call(mixed $method, array<string|int, mixed> $args) : mixed
Parameters
$method : mixed
$args : array<string|int, mixed>
Return values
mixed

getMetadata()

public getMetadata([mixed $key = null ]) : mixed
Parameters
$key : mixed = null
Return values
mixed

isSeekable()

Returns whether or not the stream is seekable.

public isSeekable() : bool
Return values
bool

read()

public read(int $length) : string
Parameters
$length : int
Return values
string

seek()

Seek to a position in the stream.

public seek(int $offset[, int $whence = SEEK_SET ]) : mixed
Parameters
$offset : int

Stream offset

$whence : int = SEEK_SET

Specifies how the cursor position will be calculated based on the seek offset. Valid values are identical to the built-in PHP $whence values for fseek(). SEEK_SET: Set position equal to offset bytes SEEK_CUR: Set position to current location plus offset SEEK_END: Set position to end-of-stream plus offset.

Return values
mixed

write()

public write(string $string) : int
Parameters
$string : string
Return values
int

Search results