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

Class Resource

modules/files/resource/Resource.js:21–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19 */
20
21export default class Resource extends Native("Resource_destructor") {
22 constructor(path) { super(); native("Resource_constructor").call(this, path); }
23 static exists(path) { return native("Resource_exists").call(this, path); }
24 get byteLength() { return native("Resource_get_byteLength").call(this); }
25 slice(begin, end) { return native("Resource_slice").call(this, begin, end); }
26}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected