mirror of
https://github.com/yume-chan/ya-webadb.git
synced 2025-10-06 03:50:18 +02:00
refactor(struct): improve tree-shaking
This commit is contained in:
parent
e8d59b232e
commit
c91baa9116
32 changed files with 266 additions and 266 deletions
|
@ -1,13 +1,13 @@
|
|||
import type { ReadableStream } from "@yume-chan/stream-extra";
|
||||
import { PushReadableStream } from "@yume-chan/stream-extra";
|
||||
import type { StructValue } from "@yume-chan/struct";
|
||||
import { buffer, Struct, u32 } from "@yume-chan/struct";
|
||||
import { buffer, struct, u32 } from "@yume-chan/struct";
|
||||
|
||||
import { AdbSyncRequestId, adbSyncWriteRequest } from "./request.js";
|
||||
import { adbSyncReadResponses, AdbSyncResponseId } from "./response.js";
|
||||
import type { AdbSyncSocket } from "./socket.js";
|
||||
|
||||
export const AdbSyncDataResponse = new Struct(
|
||||
export const AdbSyncDataResponse = struct(
|
||||
{ data: buffer(u32) },
|
||||
{ littleEndian: true },
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue