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

Function fromArrayLike

app/public/socketcluster-client.js:2872–2879  ·  view source on GitHub ↗
(array)

Source from the content-addressed store, hash-verified

2870}
2871
2872function fromArrayLike (array) {
2873 var length = array.length < 0 ? 0 : checked(array.length) | 0
2874 var buf = createBuffer(length)
2875 for (var i = 0; i < length; i += 1) {
2876 buf[i] = array[i] & 255
2877 }
2878 return buf
2879}
2880
2881function fromArrayBuffer (array, byteOffset, length) {
2882 if (byteOffset < 0 || array.byteLength < byteOffset) {

Callers 3

fromFunction · 0.85
fromObjectFunction · 0.85
fromArrayViewFunction · 0.85

Calls 2

checkedFunction · 0.85
createBufferFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…