HH\Lib\IO\MemoryHandle::reset

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