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

Function fromArrayView

index.js:265–271  ·  view source on GitHub ↗
(arrayView)

Source from the content-addressed store, hash-verified

263}
264
265function fromArrayView (arrayView) {
266 if (isInstance(arrayView, Uint8Array)) {
267 const copy = new Uint8Array(arrayView)
268 return fromArrayBuffer(copy.buffer, copy.byteOffset, copy.byteLength)
269 }
270 return fromArrayLike(arrayView)
271}
272
273function fromArrayBuffer (array, byteOffset, length) {
274 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…