mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-10-12 23:05:44 +00:00
:suspect:
This commit is contained in:
+10
-1
@@ -26,6 +26,14 @@ class BitBuffer{
|
||||
*/
|
||||
protected $length = 0;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
public function reset(){
|
||||
$this->buffer = [];
|
||||
$this->length = 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
@@ -46,7 +54,8 @@ class BitBuffer{
|
||||
public function __toString(){
|
||||
$buffer = '';
|
||||
|
||||
for($i = 0; $i < $this->getLengthInBits(); $i++){
|
||||
$count = $this->getLengthInBits();
|
||||
for($i = 0; $i < $count; $i++){
|
||||
$buffer .= $this->get($i) ? '1' : '0';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user