insertPersistentInputStream method

int insertPersistentInputStream(
  1. WASIPreview2InputStream stream
)

Inserts a host-owned input stream outside component runtime scopes.

Implementation

int insertPersistentInputStream(WASIPreview2InputStream stream) {
  return table.insertPersistent<WASIPreview2InputStream>(
    _inputStreamType,
    stream,
  );
}