HumHub Documentation (unofficial)

FixedSizeStream
in package
implements RequestStream

FinalYes

A Stream decorator that return Chunk with the same exact size.

Tags
author

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

Table of Contents

Interfaces

RequestStream
Provides method to convert a input into string or chunks.

Properties

$chunkSize  : int
$content  : RequestStream

Methods

create()  : FixedSizeStream
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

        
On this page

Search results