MCPcopy Create free account
hub / github.com/bitpay/bitcore-message / byteLength

Function byteLength

bitcore-message.js:207–210  ·  view source on GitHub ↗
(b64)

Source from the content-addressed store, hash-verified

205}
206
207function byteLength (b64) {
208 // base64 is 4/3 + up to two characters of the original data
209 return b64.length * 3 / 4 - placeHoldersCount(b64)
210}
211
212function toByteArray (b64) {
213 var i, j, l, tmp, placeHolders, arr

Callers 1

fromStringFunction · 0.85

Calls 3

placeHoldersCountFunction · 0.85
utf8ToBytesFunction · 0.85
base64ToBytesFunction · 0.85

Tested by

no test coverage detected