MCPcopy
hub / github.com/zegl/kube-score / write

Function write

web/public/wasm_exec.js:27–34  ·  view source on GitHub ↗
(fd, buf, offset, length, position, callback)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

enosysFunction · 0.85

Tested by

no test coverage detected