phasync\Psr\TempFileStream
final
class
Documentation
Represents a file backed temporary buffer that can be accessed asynchronously.
Inheritance
Extends: phasync\Psr\ResourceStream
Implements:
Psr\Http\Message\StreamInterface
Stringable
Properties (3)
bool $closed
True if the stream resource has been closed.
bool $detached
True if the stream resource has been detached.
mixed $resource
The stream resource or null if detached or closed.
Methods (18)
Documentation missing
Documentation missing
protected
setResource()
inherited from phasync\Psr\ResourceStream
Reinitialize the stream resource.
public
__toString()
inherited from phasync\Psr\ResourceStream
Reads all data from the stream into a string, from the beginning to end.
public
close()
inherited from phasync\Psr\ResourceStream
Closes the stream and any underlying resources.
public
detach()
inherited from phasync\Psr\ResourceStream
Separates any underlying resources from the stream.
public
getSize()
inherited from phasync\Psr\ResourceStream
Get the size of the stream if known.
public
tell()
inherited from phasync\Psr\ResourceStream
Returns the current position of the file read/write pointer
public
eof()
inherited from phasync\Psr\ResourceStream
Returns true if the stream is at the end of the stream.
public
isSeekable()
inherited from phasync\Psr\ResourceStream
Returns whether or not the stream is seekable.
public
seek()
inherited from phasync\Psr\ResourceStream
Seek to a position in the stream.
public
rewind()
inherited from phasync\Psr\ResourceStream
Seek to the beginning of the stream.
public
isWritable()
inherited from phasync\Psr\ResourceStream
Returns whether or not the stream is writable.
public
write()
inherited from phasync\Psr\ResourceStream
Write data to the stream.
public
isReadable()
inherited from phasync\Psr\ResourceStream
Returns whether or not the stream is readable.
public
read()
inherited from phasync\Psr\ResourceStream
Read data from the stream.
public
getContents()
inherited from phasync\Psr\ResourceStream
Returns the remaining contents in a string
public
getMetadata()
inherited from phasync\Psr\ResourceStream
Get stream metadata as an associative array or retrieve a specific key.