#14046

refactor(nuget,apk): adopt ByteSource and drop the NuGet in-memory parse branch

Openmorlutoopened 2d ago

Summary

After #14044, two more random-access interfaces still restated PrefixedByteSource over Uint8Array: NugetNupkgRandomAccessSource and RandomAccessBytes (APK signing block). parseNugetNupkg also kept a second, in-memory Uint8Array branch (Uint8ArrayReader, buffer subarray local reads). Only tests use that branch; NugetNupkgProvider always passes a descriptor-backed source. The APK tests had their own adapter, apkFixtureReader.

Proposed Change

  • bufferByteSource accepts any Uint8Array and wraps it as a zero-copy Buffer view.
  • Both parsers take PrefixedByteSource.
  • Delete the NuGet in-memory branch and tests/fixtures/apkSignature/randomAccess.ts, and migrate the tests to bufferByteSource.

Activity

0

No activity yet.