Files
Philipp Dunkel 7622ebb3d7 zlib: add raw content read methods to ZipEntry
zipEntry.rawContent was a getter that exposed the retained buffer of an
in-memory entry and returned null for a file-backed or streaming one,
so the still-compressed bytes of a member read through ZipFile could
not be obtained at all.

Replace it with rawContent(), rawContentSync() and
rawContentIterator(), which mirror content(), contentSync() and
contentIterator() but return the bytes as stored, without
decompressing or verifying them. They work for every entry that has
readable content, return caller-owned buffers from the buffered
variants, and accept a maxSize bound on the compressed size.

Signed-off-by: Philipp Dunkel <pip@pipobscure.com>
PR-URL: https://github.com/nodejs/node/pull/66801
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2026-10-27 17:45:32 +00:00
..
2026-10-25 22:36:33 +01:00
2026-09-03 11:40:52 +02:00
2026-09-22 10:59:57 +02:00
2026-10-19 02:34:09 +00:00
2026-10-07 16:40:44 +02:00
2026-10-14 15:17:15 +00:00
2026-09-03 15:37:21 +00:00
2026-09-25 20:28:33 +00:00
2025-12-16 20:31:28 +00:00
2026-10-05 21:26:47 +00:00
2026-09-11 13:15:27 -04:00
2026-08-03 11:44:23 +00:00
2026-09-25 20:28:33 +00:00
2026-10-19 02:34:09 +00:00