Methods
-
staticGoBrain.Utils.Base64.decode(base64Str){String}
GoBrain.Core/src/utils.js, line 148Decodes a Base64 encoded string.
-
Decodes a Base64 encoded string.
Name Type Description base64StrString The Base64 encoded string to decode.
Returns:
Type Description String The decoded string. -
staticGoBrain.Utils.Base64.decodeToByteArray(base64Str, blockSize){Uint8Array}
GoBrain.Core/src/utils.js, line 186Decodes a Base64 encoded string to a byte array.
-
Decodes a Base64 encoded string to a byte array.
Name Type Description base64StrString The Base64 encoded string to decode.
blockSizeNumber optional Block size to use.
Returns:
Type Description Uint8Array The decoded byte array. -
staticGoBrain.Utils.Base64.encode(str){String}
GoBrain.Core/src/utils.js, line 109Base64 encodes a string.
-
Base64 encodes a string.
Name Type Description strString The string to encode.
Returns:
Type Description String The Base64 encoded string.