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

Function createBuffer

packages/main/test/pages/diffable-html.js:197–205  ·  view source on GitHub ↗
(length)

Source from the content-addressed store, hash-verified

195 })
196
197 function createBuffer (length) {
198 if (length > K_MAX_LENGTH) {
199 throw new RangeError('Invalid typed array length')
200 }
201 // Return an augmented `Uint8Array` instance
202 var buf = new Uint8Array(length)
203 buf.__proto__ = Buffer.prototype
204 return buf
205 }
206
207 /**
208 * The Buffer constructor returns instances of `Uint8Array` that have their

Callers 5

allocFunction · 0.85
allocUnsafeFunction · 0.85
fromStringFunction · 0.85
fromArrayLikeFunction · 0.85
fromObjectFunction · 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…