mirror of
https://github.com/yume-chan/ya-webadb.git
synced 2025-10-05 10:49:24 +02:00
refactor: performance optimizations
also renamed some internal types, and adding more code comments. (not thoroughly tested yet)
This commit is contained in:
parent
65b8671b66
commit
8223d79886
49 changed files with 932 additions and 767 deletions
|
@ -353,6 +353,7 @@ export async function deserializeAndroidLogEntry(
|
|||
): Promise<AndroidLogEntry> {
|
||||
const entry = (await LoggerEntry.deserialize(stream)) as AndroidLogEntry;
|
||||
if (entry.headerSize !== LoggerEntry.size) {
|
||||
// Skip unknown fields
|
||||
await stream.readExactly(entry.headerSize - LoggerEntry.size);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue