MCPcopy Index your code
hub / github.com/nodejs/node / toArrayBuffer

Function toArrayBuffer

deps/undici/undici.js:14878–14883  ·  view source on GitHub ↗
(buffer)

Source from the content-addressed store, hash-verified

14876 }
14877 __name(websocketMessageReceived, "websocketMessageReceived");
14878 function toArrayBuffer(buffer) {
14879 if (buffer.byteLength === buffer.buffer.byteLength) {
14880 return buffer.buffer;
14881 }
14882 return new Uint8Array(buffer).buffer;
14883 }
14884 __name(toArrayBuffer, "toArrayBuffer");
14885 function isValidSubprotocol(protocol) {
14886 if (protocol.length === 0) {

Callers 1

#onMessageMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…