File: src/Generics/Streams/InputStream.php

Recommend this page to a friend!
  Classes of Maik Greubel  >  PHP Generics  >  src/Generics/Streams/InputStream.php  >  Download  
File: src/Generics/Streams/InputStream.php
Role: Class source
Content type: text/plain
Description: Input stream interface
Class: PHP Generics
Framework for accessing streams, sockets and logs
Author: By
Last change: Add strict return types & fix socket write bug
Date: 3 years ago
Size: 642 bytes


Class file image Download

 * This file is part of the PHP Generics package.
 * @package Generics
namespace Generics\Streams;

 * This interface describes the implementation of an input stream.
 * @author Maik Greubel <>
interface InputStream extends Stream

     * Read bytes from stream.
     * @param int $length
     * Number of bytes to read
     * @param int $offset
     * The offset where to start reading
     * @throws StreamException in case of stream is closed
     * @return string The readen buffer
public function read($length = 1, $offset = null): string;

For more information send a message to info at phpclasses dot org.