Constants

HEADER_ID

HEADER_ID = 0x1 : int

Properties

$uncompressedSize

$uncompressedSize : int|null

Type

int|null

$compressedSize

$compressedSize : int|null

Type

int|null

$localHeaderOffset

$localHeaderOffset : int|null

Type

int|null

$diskStart

$diskStart : int|null

Type

int|null

Methods

__construct()

__construct(int|null  $uncompressedSize = null, int|null  $compressedSize = null, int|null  $localHeaderOffset = null, int|null  $diskStart = null) : mixed

Zip64ExtraField constructor.

Parameters

int|null $uncompressedSize
int|null $compressedSize
int|null $localHeaderOffset
int|null $diskStart

Returns

mixed —

getHeaderId()

getHeaderId() : int

Returns the Header ID (type) of this Extra Field.

The Header ID is an unsigned short integer (two bytes) which must be constant during the life cycle of this object.

Returns

int —

unpackLocalFileData()

unpackLocalFileData(string  $buffer, \PhpZip\Model\ZipEntry|null  $entry = null) : \PhpZip\Model\Extra\Fields\Zip64ExtraField

Populate data from this array as if it was in local file data.

Parameters

string $buffer

the buffer to read data from

\PhpZip\Model\ZipEntry|null $entry

Throws

\PhpZip\Exception\ZipException

on error

Returns

\PhpZip\Model\Extra\Fields\Zip64ExtraField —

unpackCentralDirData()

unpackCentralDirData(string  $buffer, \PhpZip\Model\ZipEntry|null  $entry = null) : \PhpZip\Model\Extra\Fields\Zip64ExtraField

Populate data from this array as if it was in central directory data.

Parameters

string $buffer

the buffer to read data from

\PhpZip\Model\ZipEntry|null $entry

Throws

\PhpZip\Exception\ZipException

Returns

\PhpZip\Model\Extra\Fields\Zip64ExtraField —

packLocalFileData()

packLocalFileData() : string

The actual data to put into local file data - without Header-ID or length specifier.

Returns

string —

the data

packCentralDirData()

packCentralDirData() : string

The actual data to put into central directory - without Header-ID or length specifier.

Returns

string —

the data

getUncompressedSize()

getUncompressedSize() : int|null

Returns

int|null —

setUncompressedSize()

setUncompressedSize(int|null  $uncompressedSize) : mixed

Parameters

int|null $uncompressedSize

Returns

mixed —

getCompressedSize()

getCompressedSize() : int|null

Returns

int|null —

setCompressedSize()

setCompressedSize(int|null  $compressedSize) : mixed

Parameters

int|null $compressedSize

Returns

mixed —

getLocalHeaderOffset()

getLocalHeaderOffset() : int|null

Returns

int|null —

setLocalHeaderOffset()

setLocalHeaderOffset(int|null  $localHeaderOffset) : mixed

Parameters

int|null $localHeaderOffset

Returns

mixed —

getDiskStart()

getDiskStart() : int|null

Returns

int|null —

setDiskStart()

setDiskStart(int|null  $diskStart) : mixed

Parameters

int|null $diskStart

Returns

mixed —

__toString()

__toString() : string

Returns

string —

packSizes()

packSizes() : string

Returns

string —