mirror of
https://github.com/yume-chan/ya-webadb.git
synced 2025-10-03 17:59:50 +02:00
feat(scrcpy): add client version 3.3.2 (#799)
This commit is contained in:
parent
29de3e4842
commit
b2512856be
31 changed files with 397 additions and 302 deletions
9
libraries/adb/src/utils/array-buffer.ts
Normal file
9
libraries/adb/src/utils/array-buffer.ts
Normal file
|
@ -0,0 +1,9 @@
|
|||
export function toLocalUint8Array(value: Uint8Array): Uint8Array<ArrayBuffer> {
|
||||
if (value.buffer instanceof ArrayBuffer) {
|
||||
return value as Uint8Array<ArrayBuffer>;
|
||||
}
|
||||
|
||||
const copy = new Uint8Array(value.length);
|
||||
copy.set(value);
|
||||
return copy;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue