strToU8Converts a string into a Uint8Array for use with compression/decompression methods function strToU8(str: string, latin1?: boolean): Uint8Array;§strToU8(str: string, latin1?: boolean): Uint8Array[src]§Parameters§str: string[src]The string to encode §latin1?: boolean optional[src]Whether or not to interpret the data as Latin-1. This should not need to be true unless decoding a binary string. §Return Type§Uint8Array[src]The string encoded in UTF-8/Latin-1 binary