insertPersistentOutputStream method
Inserts a host-owned output stream outside component runtime scopes.
Implementation
int insertPersistentOutputStream([WASIPreview2OutputStream? stream]) {
return table.insertPersistent<WASIPreview2OutputStream>(
_outputStreamType,
stream ?? WASIPreview2OutputStream(),
);
}