SetaPDF_Core_Reader_ReaderInterface Interface of a reader implementation
File: /SetaPDF v2/Core/Reader/ReaderInterface.php
Implemented in
Summary
Methods
copyTo()
Copies the complete content to the writer.
Parameters
- $writer : SetaPDF_Core_WriteInterface
ensure()
Ensures bytes in the buffer with a specific length and location in the file.
Parameters
- $pos : int
- $length : int
See
ensureContent()
Make sure that there is at least one character beyond the current offset in the buffer.
getBuffer()
Returns the current buffer.
Parameters
- $atOffset : boolean
getByte()
Get the byte at the current or at a specific offset position.
Parameters
- $pos : int
getLength()
Returns the byte length of the buffer.
Parameters
- $atOffset : boolean
increaseLength()
Forcefully read more data into the buffer.
Parameters
- $minLength : int
readByte()
Get the byte at the current or at a specific offset position and sets the internal pointer to the next byte.
Parameters
- $pos : integer
readBytes()
Get a specific byte count from the current or at a specific offset position and set the internal pointer to the next byte.
Parameters
- $length : integer
- $pos : integer
readLine()
Reads a line from the current buffer.
Parameters
- $length : int
reset()
Resets the buffer to a specific position and reread the buffer with the given length.
Parameters
- $pos : int|null
- $length : int