The containing class is available as IO\MemoryHandle in the www repository.
IO\MemoryHandle
public function writeAllowPartialSuccessAsync( string $data, ?int $timeout_nanos = NULL, ): Awaitable<int>;
string $data
?int $timeout_nanos = NULL
Awaitable<int>