Lines Matching refs:dv
543 static decodeHeader(dv: DataView): AdbMsgImpl {
544 console.assert(dv.byteLength === ADB_MSG_SIZE);
545 const cmd = textDecoder.decode(dv.buffer.slice(0, 4)) as CmdType;
546 const cmdNum = dv.getUint32(0, true);
547 const arg0 = dv.getUint32(4, true);
548 const arg1 = dv.getUint32(8, true);
549 const dataLen = dv.getUint32(12, true);
550 const dataChecksum = dv.getUint32(16, true);
551 const cmdChecksum = dv.getUint32(20, true);
558 const dv = new DataView(buf.buffer); constant
562 for (let i = 0; i < 4; i++) dv.setUint8(i, cmdBytes[i]);
564 dv.setUint32(4, this.arg0, true);
565 dv.setUint32(8, this.arg1, true);
566 dv.setUint32(12, rawMsg.byteLength, true);
567 dv.setUint32(16, checksum, true);
568 dv.setUint32(20, dv.getUint32(0, true) ^ 0xFFFFFFFF, true);
619 const dv = new DataView(arr.buffer); constant
620 dv.setUint32(0, MODULUS_SIZE_BYTES / 4, true);
623 dv.setUint32(4, 0 /*n0inv*/, true);
625 for (let i = 0; i < MODULUS_SIZE_BYTES; i++) dv.setUint8(8 + i, nArr[i]);
629 dv.setUint8(8 + MODULUS_SIZE_BYTES + i, 0 /*rr*/);
633 dv.setUint8(8 + (2 * MODULUS_SIZE_BYTES) + i, eArr[i]);
635 return btoa(String.fromCharCode(...new Uint8Array(dv.buffer))) +