MCPcopy Create free account
hub / github.com/codemistic/Web-Development / appendBytes

Method appendBytes

text-to-qr/lib/phpqrcode/phpqrcode.php:1875–1889  ·  view source on GitHub ↗

----------------------------------------------------------------------

($size, $data)

Source from the content-addressed store, hash-verified

1873
1874 //----------------------------------------------------------------------
1875 public function appendBytes($size, $data)
1876 {
1877 if ($size == 0)
1878 return 0;
1879
1880 $b = QRbitstream::newFromBytes($size, $data);
1881
1882 if(is_null($b))
1883 return -1;
1884
1885 $ret = $this->append($b);
1886 unset($b);
1887
1888 return $ret;
1889 }
1890
1891 //----------------------------------------------------------------------
1892 public function toByte()

Callers 2

appendPaddingBitMethod · 0.45
appendPaddingBitMethod · 0.45

Calls 2

appendMethod · 0.95
newFromBytesMethod · 0.45

Tested by

no test coverage detected