reparseCentralDirectoryData

open fun reparseCentralDirectoryData(hasUncompressedSize: Boolean, hasCompressedSize: Boolean, hasRelativeHeaderOffset: Boolean, hasDiskStart: Boolean)

Parses the raw bytes read from the central directory extra field with knowledge which fields are expected to be there.

All four fields inside the zip64 extended information extra field are optional and must only be present if their corresponding entry inside the central directory contains the correct magic value.

Parameters

hasUncompressedSize

flag to read from central directory

hasCompressedSize

flag to read from central directory

hasRelativeHeaderOffset

flag to read from central directory

hasDiskStart

flag to read from central directory

Throws

on error