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

Method appendNum

text-to-qr/lib/phpqrcode/qrbitstream.php:109–123  ·  view source on GitHub ↗

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

($bits, $num)

Source from the content-addressed store, hash-verified

107
108 //----------------------------------------------------------------------
109 public function appendNum($bits, $num)
110 {
111 if ($bits == 0)
112 return 0;
113
114 $b = QRbitstream::newFromNum($bits, $num);
115
116 if(is_null($b))
117 return -1;
118
119 $ret = $this->append($b);
120 unset($b);
121
122 return $ret;
123 }
124
125 //----------------------------------------------------------------------
126 public function appendBytes($size, $data)

Callers

nothing calls this directly

Calls 2

appendMethod · 0.95
newFromNumMethod · 0.45

Tested by

no test coverage detected