Locate the PKZIP file data instead of reading it into the model (#102)

* Locate the PKZIP file data instead of reading it into the model

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Keep only the offset of the PKZIP file data

The length is the compressed size from the local file header or the ZIP64
extended field, which the printer already shows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Keep the file data property as a comment for documentation

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
gmipf
2026-10-19 03:04:01 +02:00
committed by GitHub
parent 6238fcbb46
commit f6ade446c6
4 changed files with 57 additions and 16 deletions

View File

@@ -22,7 +22,13 @@ namespace SabreTools.Data.Models.PKZIP
/// File data, appears after the encryption header
/// if it exists or after the local file header otherwise
/// </summary>
public byte[] FileData { get; set; } = [];
/// Not read into the model, see <see cref="FileDataOffset"/>
// public byte[] FileData { get; set; } = [];
/// <summary>
/// Offset of the file data in the stream
/// </summary>
public long FileDataOffset { get; set; }
/// <summary>
/// Data descriptors, appears after the file data