Lines Matching refs:Uint8Array
245 this.send('AUTH', AuthCmd.SIGNATURE, 0, new Uint8Array(signedToken));
313 cmd: CmdType, arg0: number, arg1: number, data?: Uint8Array|string) {
335 msg.data = new Uint8Array(
350 publicExponent: new Uint8Array([0x01, 0x00, 0x01]),
361 static checksum(data: Uint8Array): number {
367 sendRaw(buf: Uint8Array): Promise<USBOutTransferResult> {
405 private writeQueue: Uint8Array[] = [];
430 async write(msg: string|Uint8Array) {
483 (raw: Uint8Array): void;
492 data: Uint8Array;
506 this.data = new Uint8Array(dataLen);
514 data?: Uint8Array | string;
556 encodeHeader(): Uint8Array {
557 const buf = new Uint8Array(ADB_MSG_SIZE);
559 const cmdBytes: Uint8Array = textEncoder.encode(this.cmd);
573 static encodeData(data?: Uint8Array|string): Uint8Array {
574 if (data === undefined) return new Uint8Array([]);
618 const arr = new Uint8Array(3 * 4 + 2 * MODULUS_SIZE_BYTES);
635 return btoa(String.fromCharCode(...new Uint8Array(dv.buffer))) +
650 _privateKey: CryptoKey, token: Uint8Array): Promise<ArrayBuffer> {