Base64
Constants
-
lookup :
Array.<string> -
revLookup :
Array.<number> - MAX_CHUNK_LENGTH
must be multiple of 3
Functions
-
getLens(b64) ⇒
Array.<number> - _byteLength(validLen, placeHoldersLen)
base64 is 4/3 + up to two characters of the original data
-
toByteArray(b64) ⇒
Uint8Array -
tripletToBase64(num) ⇒
string -
encodeChunk(uint8, start, end) ⇒
string -
fromByteArray(uint8) ⇒
string
lookup : Array.<string>
Kind: global constant
revLookup : Array.<number>
Kind: global constant
MAX_CHUNK_LENGTH
must be multiple of 3
Kind: global constant
getLens(b64) ⇒ Array.<number>
Kind: global function
| Param | Type |
|---|---|
| b64 | string |
_byteLength(validLen, placeHoldersLen)
base64 is 4/3 + up to two characters of the original data
Kind: global function
| Param | Type |
|---|---|
| validLen | number |
| placeHoldersLen | number |
toByteArray(b64) ⇒ Uint8Array
Kind: global function
| Param | Type |
|---|---|
| b64 | string |
tripletToBase64(num) ⇒ string
Kind: global function
| Param | Type |
|---|---|
| num | number |
encodeChunk(uint8, start, end) ⇒ string
Kind: global function
| Param | Type |
|---|---|
| uint8 | Uint8Array |
| start | number |
| end | number |
fromByteArray(uint8) ⇒ string
Kind: global function
| Param | Type |
|---|---|
| uint8 | Uint8Array |