#14046
refactor(nuget,apk): adopt ByteSource and drop the NuGet in-memory parse branch
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
bufferByteSourceaccepts anyUint8Arrayand wraps it as a zero-copyBufferview.- Both parsers take
PrefixedByteSource. - Delete the NuGet in-memory branch and
tests/fixtures/apkSignature/randomAccess.ts, and migrate the tests tobufferByteSource.
Activity
0No activity yet.