aisbreaker-api-js - v0.1.15 / utils/StringUtils
Module: utils/StringUtils
Table of contents
Functions
Functions
base64ToBytes
▸ base64ToBytes(base64
): Uint8Array
Parameters
Name | Type |
---|---|
base64 | string |
Returns
Uint8Array
Defined in
aisbreaker-js/packages/aisbreaker-api-js/src/utils/StringUtils.ts:9
base64ToString
▸ base64ToString(base64
): string
Parameters
Name | Type |
---|---|
base64 | string |
Returns
string
Defined in
aisbreaker-js/packages/aisbreaker-api-js/src/utils/StringUtils.ts:68
bytesToBase64
▸ bytesToBase64(bytes
): string
Parameters
Name | Type |
---|---|
bytes | Uint8Array |
Returns
string
Defined in
aisbreaker-js/packages/aisbreaker-api-js/src/utils/StringUtils.ts:13
stringToBase64
▸ stringToBase64(str
): string
Parameters
Name | Type |
---|---|
str | string |
Returns
string
Defined in
aisbreaker-js/packages/aisbreaker-api-js/src/utils/StringUtils.ts:63
stringToUtf8Bytes
▸ stringToUtf8Bytes(str
): Uint8Array
Parameters
Name | Type |
---|---|
str | string |
Returns
Uint8Array
Defined in
aisbreaker-js/packages/aisbreaker-api-js/src/utils/StringUtils.ts:33
utf8BytesToString
▸ utf8BytesToString(bytes
): string
Parameters
Name | Type |
---|---|
bytes | Uint8Array |
Returns
string
Defined in
aisbreaker-js/packages/aisbreaker-api-js/src/utils/StringUtils.ts:56