MCPcopy Create free account
hub / github.com/UI5/webcomponents / _uint8ArrayToBuffer

Function _uint8ArrayToBuffer

packages/main/test/pages/diffable-html.js:6134–6136  ·  view source on GitHub ↗
(chunk)

Source from the content-addressed store, hash-verified

6132 var Buffer = require('safe-buffer').Buffer;
6133 var OurUint8Array = global.Uint8Array || function () {};
6134 function _uint8ArrayToBuffer(chunk) {
6135 return Buffer.from(chunk);
6136 }
6137 function _isUint8Array(obj) {
6138 return Buffer.isBuffer(obj) || obj instanceof OurUint8Array;
6139 }

Callers 2

readableAddChunkFunction · 0.85
diffable-html.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…