PHP stream implementation.

    public GuzzleHttp\Psr7\Stream::READABLE_MODES = '/r|a\+|ab\+|w\+|wb\+|x\+|xb\+|c\+|cb\+/'

    Resource modes.

    • var string
    • see
    • see
    public GuzzleHttp\Psr7\Stream::WRITABLE_MODES = '/a|w|r\+|rb\+|rw|x|c/'
    public __construct( $stream, $options = [])

    This constructor accepts an associative array of options.

    • size: (int) If a read stream would otherwise have an indeterminate
      size, but the size is known due to foreknowledge, then you can
      provide that size, in bytes.
    • metadata: (array) Any additional metadata to return when the metadata
      of the stream is accessed.
    • throws InvalidArgumentException if the stream is not a stream resource
    public __destruct()

    Closes the stream when the destructed

    public __toString()
    public close()
    public detach()
    public eof()
    public getContents()
    public getMetadata( $key = NULL)
    public getSize()
    public isReadable()
    public isSeekable()
    public isWritable()
    public read( $length)
    public rewind()
    public seek( $offset, $whence = 0)
    public tell()
    public write( $string)
    private $customMetadata
    private $readable
    private $seekable
    private $size
    private $stream
    private $uri
    private $writable
    © 2020 Bruce Wells
    Search Namespaces \ Classes
    ConfigurationNumbers (0-9.) only