/ fm / liveswitch / Base64
Class: Base64
fm.liveswitch.Base64
Table of contents
Constructors
Properties
Methods
- getTypeString
- b64ToUint6
- decode
- decodeIt
- encode
- encodeBuffer
- encodeIt
- tryDecode
- tryEncode
- tryEncodeBuffer
- uint6ToB64
Constructors
constructor
+ new Base64(): Base64
Returns: Base64
Properties
_base64Regex
▪ Private
Static
_base64Regex: RegExp
Defined in: Generated/TypeScript/fm.liveswitch/Base64.ts:6
Methods
getTypeString
▸ getTypeString(): string
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/Base64.ts:3
b64ToUint6
▸ Private
Static
b64ToUint6(cc
: number): number
Parameters:
Name | Type |
---|---|
cc |
number |
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/Base64.ts:67
decode
▸ Static
decode(s
: string): Uint8Array
Parameters:
Name | Type |
---|---|
s |
string |
Returns: Uint8Array
Defined in: Generated/TypeScript/fm.liveswitch/Base64.ts:19
decodeIt
▸ Private
Static
decodeIt(str64
: string, blocksSize?
: number): Uint8Array
Parameters:
Name | Type |
---|---|
str64 |
string |
blocksSize? |
number |
Returns: Uint8Array
Defined in: Generated/TypeScript/fm.liveswitch/Base64.ts:82
encode
▸ Static
encode(b
: Uint8Array): string
Parameters:
Name | Type |
---|---|
b |
Uint8Array |
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/Base64.ts:7
encodeBuffer
▸ Static
encodeBuffer(buffer
: DataBuffer): string
Parameters:
Name | Type |
---|---|
buffer |
DataBuffer |
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/Base64.ts:13
encodeIt
▸ Private
Static
encodeIt(bytes
: Uint8Array, index
: number, length
: number): string
Parameters:
Name | Type |
---|---|
bytes |
Uint8Array |
index |
number |
length |
number |
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/Base64.ts:124
tryDecode
▸ Static
tryDecode(s
: string, result
: Holder<Uint8Array>): boolean
Parameters:
Name | Type |
---|---|
s |
string |
result |
Holder<Uint8Array> |
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/Base64.ts:54
tryEncode
▸ Static
tryEncode(b
: Uint8Array, result
: Holder<string>): boolean
Parameters:
Name | Type |
---|---|
b |
Uint8Array |
result |
Holder<string> |
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/Base64.ts:28
tryEncodeBuffer
▸ Static
tryEncodeBuffer(buffer
: DataBuffer, result
: Holder<string>): boolean
Parameters:
Name | Type |
---|---|
buffer |
DataBuffer |
result |
Holder<string> |
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/Base64.ts:41
uint6ToB64
▸ Private
Static
uint6ToB64(b
: number): number
Parameters:
Name | Type |
---|---|
b |
number |
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/Base64.ts:109