HumHub Documentation (unofficial)

IterableStream
in package
implements ReadOnceResultStream, RequestStream

FinalYes

Convert an iterator into a Stream.

Tags
author

Jérémy Derussé jeremy@derusse.com

Table of Contents

Interfaces

ReadOnceResultStream
Marker for ResultStream that can be read only once.
RequestStream
Provides method to convert a input into string or chunks.

Properties

$content  : iterable<string|int, string>

Methods

create()  : IterableStream
getIterator()  : Traversable
hash()  : string
length()  : int|null
Length in bytes.
stringify()  : string
__construct()  : mixed

Properties

Methods

getIterator()

public getIterator() : Traversable
Return values
Traversable

hash()

public hash([string $algo = 'sha256' ][, bool $raw = false ]) : string
Parameters
$algo : string = 'sha256'
$raw : bool = false
Return values
string

length()

Length in bytes.

public length() : int|null
Return values
int|null

__construct()

private __construct(iterable<string|int, string> $content) : mixed
Parameters
$content : iterable<string|int, string>

        
On this page

Search results