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

Function byteLength

packages/main/test/pages/diffable-html.js:39–42  ·  view source on GitHub ↗
(b64)

Source from the content-addressed store, hash-verified

37 }
38
39 function byteLength (b64) {
40 // base64 is 4/3 + up to two characters of the original data
41 return (b64.length * 3 / 4) - placeHoldersCount(b64)
42 }
43
44 function toByteArray (b64) {
45 var i, l, tmp, placeHolders, arr

Callers 1

fromStringFunction · 0.85

Calls 4

placeHoldersCountFunction · 0.85
isArrayBufferFunction · 0.85
utf8ToBytesFunction · 0.85
base64ToBytesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…