The containing class is available as IO\MemoryHandle in the www repository.
IO\MemoryHandle
public function getBuffer(): string;
string