MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / Update

Class Update

modules/io/update/mac/update-mac.js:1–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1class Update extends Native("xs_update_destructor") {
2 constructor() {throw new TypeError}
3 close() { return native("xs_update_close").call(this); }
4 complete() { return native("xs_update_complete").call(this); }
5
6 write(buffer, byteOffset) { return native("xs_update_write").call(this, buffer, byteOffset); }
7
8 get format() { return native("xs_update_get_format").call(this); }
9 set format(value) { native("xs_update_set_format").call(this, value); }
10
11 static {
12 this.prototype[Symbol.dispose] = this.prototype.close;
13 }
14}
15
16function open(options, prototype) { return native("xs_update_open").call(this, options, prototype); }
17

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected