$mode
$mode : \Omega\Filesystem\Stream\StreamMode
The mode of the stream (read/write).
Class InMemoryBuffer.
Implements a stream interface that allows reading from and writing to an in-memory buffer, providing temporary storage for file content managed by a Filesystem instance. It handles synchronization with the underlying filesystem and manages read/write positions.
$mode : \Omega\Filesystem\Stream\StreamMode
The mode of the stream (read/write).
$filesystem : \Omega\Filesystem\Filesystem
seek(int $offset, int $whence = SEEK_SET) : bool
Moves the read/write position to a new location in the buffer.
int | $offset | The offset to move the position |
int | $whence | The reference point for the offset (SEEK_SET, SEEK_CUR, SEEK_END) |
True if the seek was successful, false otherwise
writeContent(string $content = '', bool $overwrite = true) : string
Writes content to the filesystem.
string | $content | The content to write (empty string by default) |
bool | $overwrite | Indicates whether to overwrite existing content (true by default) |
The content that was written