MCPcopy Create free account
hub / github.com/Permify/permify / write

Function write

playground/src/wasm/wasm_exec.js:28–35  ·  view source on GitHub ↗
(fd, buf, offset, length, position, callback)

Source from the content-addressed store, hash-verified

26 return buf.length;
27 },
28 write(fd, buf, offset, length, position, callback) {
29 if (offset !== 0 || length !== buf.length || position !== null) {
30 callback(enosys());
31 return;
32 }
33 const n = this.writeSync(fd, buf);
34 callback(null, n);
35 },
36 chmod(path, mode, callback) { callback(enosys()); },
37 chown(path, uid, gid, callback) { callback(enosys()); },
38 close(fd, callback) { callback(enosys()); },

Callers

nothing calls this directly

Calls 2

callbackFunction · 0.85
enosysFunction · 0.85

Tested by

no test coverage detected