/ fm / liveswitch / Encoding
Class: Encoding
fm.liveswitch.Encoding
Table of contents
Constructors
Methods
Constructors
constructor
+ new Encoding(): Encoding
Returns: Encoding
Methods
getByteCount
▸ getByteCount(str: string): number
Parameters:
| Name | Type |
|---|---|
str |
string |
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/Encoding.ts:79
getBytes
▸ getBytes(str: string): Uint8Array
Parameters:
| Name | Type |
|---|---|
str |
string |
Returns: Uint8Array
Defined in: Generated/TypeScript/fm.liveswitch/Encoding.ts:46
getString
▸ getString(bytes: Uint8Array, index?: number, count?: number): string
Parameters:
| Name | Type |
|---|---|
bytes |
Uint8Array |
index? |
number |
count? |
number |
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/Encoding.ts:12
getTypeString
▸ getTypeString(): string
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/Encoding.ts:3
getAscii
▸ StaticgetAscii(): Encoding
Returns: Encoding
Defined in: Generated/TypeScript/fm.liveswitch/Encoding.ts:6
getUtf8
▸ StaticgetUtf8(): Encoding
Returns: Encoding
Defined in: Generated/TypeScript/fm.liveswitch/Encoding.ts:9