mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-08-26 06:38:11 +00:00
:octocat: ReedSolomonEncoder: add constructor
This commit is contained in:
@@ -595,7 +595,7 @@ class QRMatrix{
|
||||
* Maps the interleaved binary $data on the matrix
|
||||
*/
|
||||
public function writeCodewords(BitBuffer $bitBuffer):self{
|
||||
$data = (new ReedSolomonEncoder)->interleaveEcBytes($bitBuffer, $this->version, $this->eccLevel);
|
||||
$data = (new ReedSolomonEncoder($this->version, $this->eccLevel))->interleaveEcBytes($bitBuffer);
|
||||
$byteCount = count($data);
|
||||
$iByte = 0;
|
||||
$iBit = 7;
|
||||
|
||||
Reference in New Issue
Block a user