classes-Com-Tecnick-Barcode-Type-Square-QrCode-InputItem

It appears that you are using AdBlocking software. The cost of running this website is covered by advertisements. If you like it please feel free to a small amount of money to secure the future of this website.

InputItem extends Estimate

Com\Tecnick\Barcode\Type\Square\QrCode\InputItem

Tags
since
2015-02-21
category

Library

author

Nicola Asuni info@tecnick.com

copyright

2010-2016 Nicola Asuni - Tecnick.com LTD

license

http://www.gnu.org/copyleft/lesser.html GNU-LGPL v3 (see LICENSE.TXT)

link
https://github.com/tecnickcom/tc-lib-barcode

Table of Contents

appendNewInputItem()  : array<string|int, mixed>
Append data to an input object.
estimateBitsMode8()  : int
estimateBitsMode8
estimateBitsModeAn()  : int
estimateBitsModeAn
estimateBitsModeKanji()  : int
estimateBitsModeKanji
estimateBitsModeNum()  : int
estimateBitsModeNum
estimateVersion()  : int
Estimate version
check()  : bool
Validate the input data.
checkModeAn()  : bool
checkModeAn
checkModeKanji()  : bool
checkModeKanji
checkModeNum()  : bool
checkModeNum
estimateBitStreamSize()  : int
estimateBitStreamSize
getMinimumVersion()  : int
Return a version number that satisfies the input code length.
newInputItem()  : array<string|int, mixed>
newInputItem

Methods

appendNewInputItem()

Append data to an input object.

public appendNewInputItem(array<string|int, mixed> $items, int $mode, int $size, array<string|int, mixed> $data) : array<string|int, mixed>

The data is copied and appended to the input object.

Parameters
$items : array<string|int, mixed>

Input items

$mode : int

Encoding mode.

$size : int

Size of data (byte).

$data : array<string|int, mixed>

Array of input data.

Return values
array<string|int, mixed>

items

estimateBitsMode8()

estimateBitsMode8

public estimateBitsMode8(int $size) : int
Parameters
$size : int
Return values
int

number of bits

estimateBitsModeAn()

estimateBitsModeAn

public estimateBitsModeAn(int $size) : int
Parameters
$size : int
Return values
int

number of bits

estimateBitsModeKanji()

estimateBitsModeKanji

public estimateBitsModeKanji(int $size) : int
Parameters
$size : int
Return values
int

number of bits

estimateBitsModeNum()

estimateBitsModeNum

public estimateBitsModeNum(int $size) : int
Parameters
$size : int
Return values
int

number of bits

estimateVersion()

Estimate version

public estimateVersion(array<string|int, mixed> $items, int $level) : int
Parameters
$items : array<string|int, mixed>
$level : int
Return values
int

version

check()

Validate the input data.

protected check(int $mode, int $size, array<string|int, mixed> $data) : bool
Parameters
$mode : int

Encoding mode.

$size : int

Size of data (byte).

$data : array<string|int, mixed>

Data to validate

Return values
bool

true in case of valid data, false otherwise

checkModeAn()

checkModeAn

protected checkModeAn(int $size, int $data) : bool
Parameters
$size : int
$data : int
Return values
bool

true or false

checkModeKanji()

checkModeKanji

protected checkModeKanji(int $size, int $data) : bool
Parameters
$size : int
$data : int
Return values
bool

true or false

checkModeNum()

checkModeNum

protected checkModeNum(int $size, int $data) : bool
Parameters
$size : int
$data : int
Return values
bool

true or false

estimateBitStreamSize()

estimateBitStreamSize

protected estimateBitStreamSize(array<string|int, mixed> $items, int $version) : int
Parameters
$items : array<string|int, mixed>
$version : int
Return values
int

bits

getMinimumVersion()

Return a version number that satisfies the input code length.

protected getMinimumVersion(int $size, int $level) : int
Parameters
$size : int

Input code length (bytes)

$level : int

Error correction level

Tags
throws
Exception
Return values
int

version number

newInputItem()

newInputItem

protected newInputItem(int $mode, int $size, array<string|int, mixed> $data[, array<string|int, mixed> $bstream = null ]) : array<string|int, mixed>
Parameters
$mode : int

Encoding mode.

$size : int

Size of data (byte).

$data : array<string|int, mixed>

Array of input data.

$bstream : array<string|int, mixed> = null

Binary stream

Return values
array<string|int, mixed>

input item

 

© 2004-2021 – Nicola Asuni - Tecnick.com - All rights reserved.
about - disclaimer - privacy