\PhpZip\Model\Extra\FieldsApkAlignmentExtraField

Apk Alignment Extra Field.

Summary

Methods
Properties
Constants
__construct()
getHeaderId()
getMultiple()
getPadding()
setMultiple()
setPadding()
unpackLocalFileData()
unpackCentralDirData()
packLocalFileData()
packCentralDirData()
__toString()
No public properties found
HEADER_ID
MIN_SIZE
ALIGNMENT_BYTES
COMMON_PAGE_ALIGNMENT_BYTES
No protected methods found
No protected properties found
N/A
No private methods found
$multiple
$padding
N/A

Constants

HEADER_ID

HEADER_ID = 0xd935 : int

MIN_SIZE

MIN_SIZE = 6 : int

ALIGNMENT_BYTES

ALIGNMENT_BYTES = 4 : int

COMMON_PAGE_ALIGNMENT_BYTES

COMMON_PAGE_ALIGNMENT_BYTES = 4096 : int

Properties

$multiple

$multiple : int

Type

int

$padding

$padding : int

Type

int

Methods

__construct()

__construct(int  $multiple, int  $padding) : mixed

Parameters

int $multiple
int $padding

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 —

getMultiple()

getMultiple() : int

Returns

int —

getPadding()

getPadding() : int

Returns

int —

setMultiple()

setMultiple(int  $multiple) : mixed

Parameters

int $multiple

Returns

mixed —

setPadding()

setPadding(int  $padding) : mixed

Parameters

int $padding

Returns

mixed —

unpackLocalFileData()

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

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

Returns

\PhpZip\Model\Extra\Fields\ApkAlignmentExtraField —

unpackCentralDirData()

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

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

on error

Returns

\PhpZip\Model\Extra\Fields\ApkAlignmentExtraField —

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

__toString()

__toString() : string

Returns

string —