OutputInterface
in
Output byte stream interface
Tags
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
Return values
string|boolsetReadPointer()
Move the internal read pointer to $byteOffset in the stream.
public
setReadPointer(int $byteOffset) : void
Parameters
- $byteOffset : int