MCPcopy Create free account
hub / github.com/bewcloud/bewcloud / fromArrayLike

Function fromArrayLike

lib/models/dav.js:2108–2115  ·  view source on GitHub ↗
(that, array)

Source from the content-addressed store, hash-verified

2106}
2107
2108function fromArrayLike (that, array) {
2109 var length = array.length < 0 ? 0 : checked(array.length) | 0;
2110 that = createBuffer(that, length);
2111 for (var i = 0; i < length; i += 1) {
2112 that[i] = array[i] & 255;
2113 }
2114 return that
2115}
2116
2117function fromArrayBuffer (that, array, byteOffset, length) {
2118 array.byteLength; // this throws if `array` is not a valid ArrayBuffer

Callers 2

fromArrayBufferFunction · 0.85
fromObjectFunction · 0.85

Calls 2

checkedFunction · 0.85
createBufferFunction · 0.85

Tested by

no test coverage detected