public function endVisitLong(LongValueCommand $x, Context $ctx) { $this->appendTypedData(LONG_TYPE, Long::toLongString($x->getValue())); }
public function endVisitLong(LongValueCommand $x, Context $ctx) { $fieldValue = $x->getValue(); $l = $fieldValue & 0x3fffff; $m = $fieldValue / 4194304 & 0x3fffff; $h = $fieldValue / 17592186044416 & 0xfffff; $this->push('{l:' . $l . ',m:' . $m . ',h:' . $h . '}'); }