Function strToU8
- str
To (str, latin1?): Uint8ArrayU8 Parameters
- str: string
The string to encode
Optional
latin1: booleanWhether or not to interpret the data as Latin-1. This should not need to be true unless decoding a binary string.
Returns Uint8Array
The string encoded in UTF-8/Latin-1 binary
- str: string
Converts a string into a Uint8Array for use with compression/decompression methods