MCPcopy Index your code
hub / github.com/SocketCluster/socketcluster / fromArrayView

Function fromArrayView

app/public/socketcluster-client.js:4663–4669  ·  view source on GitHub ↗
(arrayView)

Source from the content-addressed store, hash-verified

4661}
4662
4663function fromArrayView (arrayView) {
4664 if (isInstance(arrayView, Uint8Array)) {
4665 var copy = new Uint8Array(arrayView)
4666 return fromArrayBuffer(copy.buffer, copy.byteOffset, copy.byteLength)
4667 }
4668 return fromArrayLike(arrayView)
4669}
4670
4671function fromArrayBuffer (array, byteOffset, length) {
4672 if (byteOffset < 0 || array.byteLength < byteOffset) {

Callers 1

fromFunction · 0.85

Calls 3

isInstanceFunction · 0.85
fromArrayBufferFunction · 0.85
fromArrayLikeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…