class EightBitContentEncoder implementsContentEncoderInterface

Methods

iterable
encodeByteStream($stream,int$maxLineLength =0)

Encodes the stream to a Generator.

string
getName()

Gets the MIME name of this content encoding scheme.

string
encodeString(string$string,string|null$charset ='utf-8',int$firstLineOffset =0,int$maxLineLength =0)

Encode a given string to produce an encoded string.

Details

iterable encodeByteStream($stream,int$maxLineLength =0)

Encodes the stream to a Generator.

Parameters

$stream
int $maxLineLength

Return Value

iterable

string getName()

Gets the MIME name of this content encoding scheme.

Return Value

string

string encodeString(string$string,string|null$charset ='utf-8',int$firstLineOffset =0,int$maxLineLength =0)

Encode a given string to produce an encoded string.

Parameters

string $string
string|null $charset
int $firstLineOffset
int $maxLineLength

Return Value

string