| 98 | export class View4 extends ViewMixin(Uint32Array) {} |
| 99 | |
| 100 | export 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 |
| 120 | if (0x600 <= config.target && config.target < 0x1000) { |
| 121 | Buffer.from = function from(...args) { |
nothing calls this directly
no outgoing calls
no test coverage detected