mirror of
https://github.com/yume-chan/ya-webadb.git
synced 2025-10-04 10:19:17 +02:00
feat(adb): start converting to Uint8Array
This commit is contained in:
parent
a7e259c5ad
commit
014145f775
32 changed files with 268 additions and 332 deletions
|
@ -33,7 +33,7 @@ export const AdbFrameBufferV1 =
|
|||
.uint32('green_length')
|
||||
.uint32('alpha_offset')
|
||||
.uint32('alpha_length')
|
||||
.uint8ClampedArray('data', { lengthField: 'size' });
|
||||
.uint8Array('data', { lengthField: 'size' });
|
||||
|
||||
export type AdbFrameBufferV1 = typeof AdbFrameBufferV1['TDeserializeResult'];
|
||||
|
||||
|
@ -52,7 +52,7 @@ export const AdbFrameBufferV2 =
|
|||
.uint32('green_length')
|
||||
.uint32('alpha_offset')
|
||||
.uint32('alpha_length')
|
||||
.uint8ClampedArray('data', { lengthField: 'size' });
|
||||
.uint8Array('data', { lengthField: 'size' });
|
||||
|
||||
export type AdbFrameBufferV2 = typeof AdbFrameBufferV2['TDeserializeResult'];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue