Interface LocalFileHeader

Hierarchy

  • LocalFileHeader

Properties

Properties

data: {
    compressedSize: number;
    compressionMethod: number;
    crc32: number;
    extraField: ArrayBuffer;
    extraFieldLength: number;
    filename: string;
    filenameLength: number;
    generalPurposeBitFlag: number;
    lastModifiedDate: number;
    lastModifiedTime: number;
    signature: ArrayBuffer;
    uncompressedSize: number;
    versionToExtract: number;
}

Type declaration

  • compressedSize: number

    Compressed size (or 0xffffffff for ZIP64)

  • compressionMethod: number

    Compression method; e.g. none = 0, DEFLATE = 8 (or "\0x08\0x00")

  • crc32: number

    CRC-32 of uncompressed data Value computed over file data by CRC-32 algorithm with 'magic number' 0xdebb20e3 (little endian)

  • extraField: ArrayBuffer

    Extra field

  • extraFieldLength: number

    Extra field length (m)

  • filename: string

    File name

  • filenameLength: number

    File name length (n)

  • generalPurposeBitFlag: number

    General purpose bit flag

  • lastModifiedDate: number

    File last modification date (DOS format)

  • lastModifiedTime: number

    File last modification time (DOS format)

  • signature: ArrayBuffer

    Local file header signature = 0x04034b50 (PK♥♦ or "PK\3\4")

  • uncompressedSize: number

    Uncompressed size (or 0xffffffff for ZIP64)

  • versionToExtract: number

    Version needed to extract (minimum)

meta: {
    compressedData: ArrayBuffer;
    dataDescriptor?: {
        compressedSize: number;
        crc32: number;
        optionalSignature?: ArrayBuffer;
        uncompressedSize: number;
    };
}

Type declaration

  • compressedData: ArrayBuffer
  • Optional dataDescriptor?: {
        compressedSize: number;
        crc32: number;
        optionalSignature?: ArrayBuffer;
        uncompressedSize: number;
    }

    If the bit at offset 3 (0x08) of the general-purpose flags field is set, then the CRC-32 and file sizes are not known when the header is written. The fields in the local header are filled with zero, and the CRC-32 and size are appended in a 12-byte structure (optionally preceded by a 4-byte signature) immediately after the compressed data

    • compressedSize: number

      Compressed size

    • crc32: number

      CRC-32 of uncompressed data

    • Optional optionalSignature?: ArrayBuffer

      Optional data descriptor signature = 0x08074b50

    • uncompressedSize: number

      Uncompressed size

Generated using TypeDoc