Documentation

OutputInterface
in

Output byte stream interface

Tags
category

Pop

author

Chris Corbyn, from the SwiftMailer library https://github.com/swiftmailer/swiftmailer

version
4.0.0

Table of Contents

Methods

read()  : string|bool
Reads $length bytes from the stream into a string and moves the pointer through the stream by $length.
setReadPointer()  : void
Move the internal read pointer to $byteOffset in the stream.

Methods

read()

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

public read(int|string $length) : string|bool

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

Parameters
$length : int|string
Tags
throws
Exception
Return values
string|bool

setReadPointer()

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

public setReadPointer(int $byteOffset) : void
Parameters
$byteOffset : int
Tags
throws
Exception

        
On this page

Search results