std.android.zip_writer
ZIP-Archiv-Erzeugung (PKZIP-Format). Grundlage für std.android.apk_builder — APK-Dateien sind ZIP-Archive mit Android-spezifischer Struktur. Kann auch für allgemeine ZIP-Komprimierung verwendet werden.
→ std.android · std.android.apk_builder · std.zlib
Typen
ZipWriter (class)
| Feld | Typ |
|---|---|
buf | int64 |
bufCap | int64 |
bufLen | int64 |
cdEntries | int64 |
cdEntryCap | int64 |
cdEntryCount | int64 |
namePool | int64 |
namePoolCap | int64 |
namePoolLen | int64 |
Funktionen
| Signatur | Sichtbarkeit | Beschreibung |
|---|---|---|
AddFileStored(name: pchar, data: int64, len: int64): int64 | pub | Append a single stored (uncompressed) entry. `name` is the in-archive path (forward-slash separated, no leading slash); `data`/`len` is the file content. Return |
Finalize(): void | pub | Emit central directory + EOCD. After Finalize, GetBuf()/GetLen() expose the complete ZIP archive bytes. |
GetBuf(): int64 | pub | — |
GetLen(): int64 | pub | — |
Signaturen automatisch aus std/android/zip_writer.lyx erzeugt (Stand 2026-08-02, lyxc 1.0.21A). Beschreibungen stammen aus den Quellkommentaren und sind teilweise unvollständig.
