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

Method appendNum

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

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

($bits, $num)

Source from the content-addressed store, hash-verified

1856
1857 //----------------------------------------------------------------------
1858 public function appendNum($bits, $num)
1859 {
1860 if ($bits == 0)
1861 return 0;
1862
1863 $b = QRbitstream::newFromNum($bits, $num);
1864
1865 if(is_null($b))
1866 return -1;
1867
1868 $ret = $this->append($b);
1869 unset($b);
1870
1871 return $ret;
1872 }
1873
1874 //----------------------------------------------------------------------
1875 public function appendBytes($size, $data)

Callers 12

encodeModeNumMethod · 0.45
encodeModeAnMethod · 0.45
encodeMode8Method · 0.45
encodeModeKanjiMethod · 0.45
encodeModeStructureMethod · 0.45
appendPaddingBitMethod · 0.45
encodeModeNumMethod · 0.45
encodeModeAnMethod · 0.45
encodeMode8Method · 0.45
encodeModeKanjiMethod · 0.45
encodeModeStructureMethod · 0.45
appendPaddingBitMethod · 0.45

Calls 2

appendMethod · 0.95
newFromNumMethod · 0.45

Tested by

no test coverage detected