OutputInterface
in
Output byte stream interface
Tags
Table of Contents
- read() : string|bool
- Reads $length bytes from the stream into a string and moves the pointer through the stream by $length.
- setReadPointer() : bool
- 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 $length) : string|bool
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
- $length : int
Tags
Return values
string|bool —setReadPointer()
Move the internal read pointer to $byteOffset in the stream.
public
setReadPointer(int $byteOffset) : bool
Parameters
- $byteOffset : int