Method | Description | |
---|---|---|
__construct ( string $path, boolean $writable = false ) | Create a new FileByteStream for $path. | |
getPath ( ) : string | Get the complete path to the file. | |
read ( integer $length ) : string | boolean | Reads $length bytes from the stream into a string and moves the pointer through the stream by $length. | |
setReadPointer ( integer $byteOffset ) : boolean | Move the internal read pointer to $byteOffset in the stream. |
Method | Description | |
---|---|---|
_commit ( $bytes ) | Just write the bytes to the file | |
_flush ( ) | Not used |
Method | Description | |
---|---|---|
_copyReadStream ( ) | Copy a readOnly Stream to ensure seekability | |
_getReadHandle ( ) | Get the resource for reading | |
_getReadStreamSeekableStatus ( ) | Check if ReadOnly Stream is seekable | |
_getWriteHandle ( ) | Get the resource for writing | |
_resetReadHandle ( ) | Force a reload of the resource for reading | |
_seekReadStreamToPosition ( $offset ) | Streams in a readOnly stream ensuring copy if needed |
public __construct ( string $path, boolean $writable = false ) | ||
$path | string | |
$writable | boolean | if true |
public setReadPointer ( integer $byteOffset ) : boolean | ||
$byteOffset | integer | |
return | boolean |