MCPcopy
hub / github.com/feross/buffer / T

Function T

test/node/test-buffer-inheritance.js:8–12  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

6
7
8function T(n) {
9 const ui8 = new Uint8Array(n);
10 Object.setPrototypeOf(ui8, T.prototype);
11 return ui8;
12}
13Object.setPrototypeOf(T.prototype, Buffer.prototype);
14Object.setPrototypeOf(T, Buffer);
15

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected