The containing class is available as IO\MemoryHandle in the www repository.
IO\MemoryHandle
protected function writeImpl( string $data, ): int;
string $data
int