MCPcopy Create free account
hub / github.com/GamerHack/GamerHack.github.io / Buffer

Class Buffer

g2all/900/module/view.js:100–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98export class View4 extends ViewMixin(Uint32Array) {}
99
100export class Buffer extends BufferView {
101 get addr() {
102 let res = this._addr_cache;
103 if (res !== undefined) {
104 return res;
105 }
106 res = mt.get_view_vector(this);
107 this._addr_cache = res;
108 return res;
109 }
110
111 get size() {
112 return this.byteLength;
113 }
114
115 addr_at(index) {
116 return this.addr.add(index);
117 }
118}
119// see from() and of() comment above
120if (0x600 <= config.target && config.target < 0x1000) {
121 Buffer.from = function from(...args) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected