diff options
Diffstat (limited to 'core/01_core.js')
-rw-r--r-- | core/01_core.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/core/01_core.js b/core/01_core.js index 9d4bab65d..75bfc884f 100644 --- a/core/01_core.js +++ b/core/01_core.js @@ -146,6 +146,18 @@ return ObjectFromEntries(opSync("op_resources")); } + function read(rid, buf) { + return opAsync("op_read", rid, buf); + } + + function write(rid, buf) { + return opAsync("op_write", rid, buf); + } + + function shutdown(rid) { + return opAsync("op_shutdown", rid); + } + function close(rid) { opSync("op_close", rid); } @@ -191,6 +203,9 @@ ops, close, tryClose, + read, + write, + shutdown, print, resources, metrics, |