Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__destruct () | |
readBytes ($byteCount) | |
readAllBytes () | |
__toString () | |
getOffset () | |
getSize () | |
moveToOffset ($offset) | |
skipBytes ($byteCount) | |
Protected Attributes | |
$_size = 0 | |
$_offset = 0 | |
Definition at line 41 of file FileParserDataSource.php.
|
abstract |
Object destructor. Closes the data source.
May also perform cleanup tasks such as deleting temporary files.
__toString | ( | ) |
Returns a description of the object for debugging purposes.
Subclasses should override this method to provide a more specific description of the actual object being represented.
Definition at line 111 of file FileParserDataSource.php.
getOffset | ( | ) |
Returns the byte offset of the current read position within the data source.
Definition at line 125 of file FileParserDataSource.php.
getSize | ( | ) |
Returns the total size in bytes of the data source.
Definition at line 135 of file FileParserDataSource.php.
moveToOffset | ( | $offset | ) |
Moves the current read position to the specified byte offset.
Throws an exception you attempt to move before the beginning or beyond the end of the data source.
If a subclass needs to perform additional tasks (such as performing a fseek() on a filesystem source), it should do so after calling this parent method.
integer | $offset | Destination byte offset. |
Zend_Pdf_Exception |
Definition at line 156 of file FileParserDataSource.php.
|
abstract |
Returns the entire contents of the data source as a string.
This method may be called at any time and so must preserve the byte offset of the read position, both through $this->_offset and whatever other additional pointers (such as the seek position of a file pointer) that might be used.
|
abstract |
Returns the specified number of raw bytes from the data source at the byte offset of the current read position.
Must advance the read position by the number of bytes read by updating $this->_offset.
Throws an exception if there is insufficient data to completely fulfill the request or if an error occurs.
integer | $byteCount | Number of bytes to read. |
Zend_Pdf_Exception |
skipBytes | ( | $byteCount | ) |
Shifts the current read position within the data source by the specified number of bytes.
You may move forward (positive numbers) or backward (negative numbers). Throws an exception you attempt to move before the beginning or beyond the end of the data source.
integer | $byteCount | Number of bytes to skip. |
Zend_Pdf_Exception |
Definition at line 185 of file FileParserDataSource.php.
|
protected |
Definition at line 56 of file FileParserDataSource.php.
|
protected |
Definition at line 50 of file FileParserDataSource.php.