Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CentralDirectory

4.3.12 Central directory structure:

central file header signature 4 bytes (0x02014b50) version made by 2 bytes version needed to extract 2 bytes general purpose bit flag 2 bytes compression method 2 bytes last mod file time 2 bytes last mod file date 2 bytes crc-32 4 bytes compressed size 4 bytes uncompressed size 4 bytes file name length 2 bytes extra field length 2 bytes file comment length 2 bytes disk number start 2 bytes internal file attributes 2 bytes external file attributes 4 bytes relative offset of local header 4 bytes

file name (variable size) extra field (variable size) file comment (variable size)

Hierarchy

  • CentralDirectory

Index

Constructors

constructor

Methods

compressedSize

  • compressedSize(): number

compressionMethod

crc32

  • crc32(): number

diskNumberStart

  • diskNumberStart(): number

externalAttributes

  • externalAttributes(): number

extraField

  • extraField(): Buffer

extraFieldLength

  • extraFieldLength(): number

fileComment

  • fileComment(): string

fileCommentLength

  • fileCommentLength(): number

fileName

  • fileName(): string

fileNameLength

  • fileNameLength(): number

flag

  • flag(): number

getData

  • getData(): Buffer

getFileData

getRawData

  • getRawData(): Buffer

getStats

headerRelativeOffset

  • headerRelativeOffset(): number

internalAttributes

  • internalAttributes(): number

isDirectory

  • isDirectory(): boolean

isEncrypted

  • isEncrypted(): boolean

isFile

  • isFile(): boolean

lastModFileTime

  • lastModFileTime(): Date

produceFilename

  • produceFilename(): string

rawFileComment

  • rawFileComment(): Buffer

rawFileName

  • rawFileName(): Buffer

rawLastModFileTime

  • rawLastModFileTime(): number

totalSize

  • totalSize(): number

uncompressedSize

  • uncompressedSize(): number

useUTF8

  • useUTF8(): boolean

versionMadeBy

  • versionMadeBy(): number

versionNeeded

  • versionNeeded(): number

Generated using TypeDoc