Lines Matching refs:StreamInterface
9 use Psr\Http\Message\StreamInterface; alias
40 * @param StreamInterface $source Stream to read from
41 * @param StreamInterface $dest Stream to write to
47 …public static function copyToStream(StreamInterface $source, StreamInterface $dest, int $maxLen = …
75 * @param StreamInterface $stream Stream to read
81 public static function copyToString(StreamInterface $stream, int $maxLen = -1): string
116 * @param StreamInterface $stream Stream to calculate the hash for
122 …public static function hash(StreamInterface $stream, string $algo, bool $rawOutput = false): string
231 * @param StreamInterface $stream Stream to read from
234 public static function readLine(StreamInterface $stream, int $maxLength = null): string
282 …* @param resource|string|int|float|bool|StreamInterface|callable|\Iterator|null $resource Entity b…
287 public static function streamFor($resource = '', array $options = []): StreamInterface
317 if ($resource instanceof StreamInterface) {