Added 64-bit entity data field

This commit is contained in:
Shoghi Cervantes
2015-03-17 16:26:02 +01:00
parent b5b46bfd7e
commit 6af87814e3
3 changed files with 15 additions and 7 deletions

View File

@ -116,6 +116,9 @@ class Binary{
$m .= self::writeLInt($d[1][1]);
$m .= self::writeLInt($d[1][2]);
break;
case Entity::DATA_TYPE_LONG:
$m .= self::writeLLong($d[1]);
break;
}
}
$m .= "\x7f";
@ -179,6 +182,10 @@ class Binary{
$offset += 4;
}
break;
case Entity::DATA_TYPE_LONG:
$r = self::readLLong(substr($value, $offset, 4));
$offset += 8;
break;
default:
return [];
@ -430,4 +437,4 @@ class Binary{
return strrev(self::writeLong($value));
}
}
}