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

Method estimateBitsModeAn

text-to-qr/lib/phpqrcode/qrinput.php:451–461  ·  view source on GitHub ↗

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

($size)

Source from the content-addressed store, hash-verified

449
450 //----------------------------------------------------------------------
451 public static function estimateBitsModeAn($size)
452 {
453 $w = (int)($size / 2);
454 $bits = $w * 11;
455
456 if($size & 1) {
457 $bits += 6;
458 }
459
460 return $bits;
461 }
462
463 //----------------------------------------------------------------------
464 public static function estimateBitsMode8($size)

Callers 4

eatNumMethod · 0.45
eatAnMethod · 0.45
eat8Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected