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.

Class ByteStream


Extended by Com\Tecnick\Barcode\Type\Square\QrCode\InputItem
Extended by Com\Tecnick\Barcode\Type\Square\QrCode\EncodingMode
Extended by Com\Tecnick\Barcode\Type\Square\QrCode\Encode
Extended by Com\Tecnick\Barcode\Type\Square\QrCode\ByteStream
Namespace: Com\Tecnick\Barcode\Type\Square\QrCode
Package: Barcode
Category: Library
Copyright: 2010-2016 Nicola Asuni - LTD
License: GNU-LGPL v3 (see LICENSE.TXT)
Author: Nicola Asuni [email protected]
Since: 2015-02-21
Located at Type/Square/QrCode/ByteStream.php
Methods summary
# __construct( integer $hint, integer $version, integer $level )


public array
# getByteStream( array $items )

Pack all bit streams padding bits into a byte array

protected array
# bitstreamToByte( array $bstream )

Convert bitstream to bytes

protected array
# mergeBitStream( array $items )

merge the bit stream

protected array
# convertData( array $items )


protected array
# createBitStream( $items )

Create BitStream

public array
# encodeBitStream( array $inputitem, integer $version )

Encode BitStream

protected array
# appendPaddingBit( array $bstream )

Append Padding Bit to bitstream

Methods inherited from Com\Tecnick\Barcode\Type\Square\QrCode\Encode
encodeMode8(), encodeModeAn(), encodeModeKanji(), encodeModeNum(), encodeModeStructure()
Methods inherited from Com\Tecnick\Barcode\Type\Square\QrCode\EncodingMode
allocate(), appendBitstream(), appendBytes(), appendNum(), getEncodingMode(), getEncodingModeKj(), getLengthIndicator(), isAlphanumericAt(), isDigitAt(), lookAnTable(), newFromBytes(), newFromNum()
Methods inherited from Com\Tecnick\Barcode\Type\Square\QrCode\InputItem
appendNewInputItem(), check(), checkModeAn(), checkModeKanji(), checkModeNum(), newInputItem()
Methods inherited from Com\Tecnick\Barcode\Type\Square\QrCode\Estimate
estimateBitStreamSize(), estimateBitsMode8(), estimateBitsModeAn(), estimateBitsModeKanji(), estimateBitsModeNum(), estimateVersion(), getMinimumVersion()
Properties summary
protected integer $hint

Encoding mode

# 2
public integer $version

QR code version. The Size of QRcode is defined as version. Version is an integer value from 1 to 40. Version 1 is 2121 matrix. And 4 modules increases whenever 1 version increases. So version 40 is 177177 matrix.

# 0
protected integer $level

Error correction level

# 0

? 2004-2019 – Nicola Asuni - - All rights reserved.
about - disclaimer - privacy