MCPcopy Create free account
hub / github.com/TruthHun/BookStack / byteLength

Function byteLength

static/word2md/mammoth.browser.js:3945–3948  ·  view source on GitHub ↗
(b64)

Source from the content-addressed store, hash-verified

3943}
3944
3945function byteLength (b64) {
3946 // base64 is 4/3 + up to two characters of the original data
3947 return b64.length * 3 / 4 - placeHoldersCount(b64)
3948}
3949
3950function toByteArray (b64) {
3951 var i, j, l, tmp, placeHolders, arr

Callers 1

fromStringFunction · 0.70

Calls 3

placeHoldersCountFunction · 0.70
utf8ToBytesFunction · 0.70
base64ToBytesFunction · 0.70

Tested by

no test coverage detected