\Pop\Mail\Transport\Smtp\Stream\ByteOutputInterface

Output byte stream interface

Summary

Methods
Constants
read()
setReadPointer()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

read()

read(integer  $length) : string|boolean

Reads $length bytes from the stream into a string and moves the pointer through the stream by $length.

If less bytes exist than are requested the remaining bytes are given instead. If no bytes are remaining at all, boolean false is returned.

Parameters

integer $length

Throws

\Pop\Mail\Transport\Smtp\Stream\Byte\Exception

Returns

string|boolean

setReadPointer()

setReadPointer(integer  $byteOffset) : boolean

Move the internal read pointer to $byteOffset in the stream.

Parameters

integer $byteOffset

Throws

\Pop\Mail\Transport\Smtp\Stream\Byte\Exception

Returns

boolean