Lines Matching refs:Uint8Array
30 let UTF8Decoder: {decode: (buf: Uint8Array) => string;};
31 let UTF8Encoder: {encode: (str: string) => Uint8Array;};
42 UTF8Decoder = {decode: (buf: Uint8Array) => utf8Read(buf, 0, buf.length)};
45 const arr = new Uint8Array(utf8Len(str));
53 export function base64Encode(buffer: Uint8Array): string {
57 export function base64Decode(str: string): Uint8Array {
58 const arr = new Uint8Array(b64Len(str));
64 export function utf8Encode(str: string): Uint8Array {
70 export function utf8Decode(buffer: Uint8Array): string {
83 export function binaryEncode(buf: Uint8Array): string {
91 export function binaryDecode(str: string): Uint8Array {
92 const buf = new Uint8Array(str.length);