replaced binary with hexadecimal

This commit is contained in:
Shoghi Cervantes 2014-04-08 13:02:13 +02:00
parent 89138ae4ce
commit 5abe5bd43d

View File

@ -68,7 +68,7 @@ class Binary{
public static function writeMetadata(array $data){ public static function writeMetadata(array $data){
$m = ""; $m = "";
foreach($data as $bottom => $d){ foreach($data as $bottom => $d){
$m .= chr(($d[0] << 5) | ($bottom & 0b00011111)); $m .= chr(($d[0] << 5) | ($bottom & 0x1F));
switch($d[0]){ switch($d[0]){
case 0: case 0:
$m .= self::writeByte($d[1]); $m .= self::writeByte($d[1]);