HH\Lib\IO\MemoryHandle::reset

Meta Engineer?

The containing class is available as IO\MemoryHandle in the www repository.

Set the internal buffer and reset position to the beginning of the file

public function reset(
  string $data = '',
): void;

If you wish to preserve the position, use tell() and seek(), or appendToBuffer().

Parameters

  • string $data = ''

Returns

  • void