/** * Returns the box heap size in bytes. * * @return integer */ public function getHeapSize() { return parent::getHeapSize() + count($this->_trackId) * 4; }
/** * Returns the box heap size in bytes. * * @return integer */ public function getHeapSize() { return parent::getHeapSize() + 8 + 4 * count($this->_compatibleBrands); }
/** * Returns the box heap size in bytes. * * @return integer */ public function getHeapSize() { return parent::getHeapSize() + 2; }
/** * Returns the box heap size in bytes. * * @return integer */ public function getHeapSize() { $totalSize = 4; for ($i = 0; $i < count($this->_itemId); $i++) { $totalSize += 6; if ($this->_itemId[$i]['baseOffset'] > 0xffffffff) { $totalSize += 8; } else { $totalSize += 4; } $extentCount = count($this->_itemId[$i]['extents']); for ($j = 0; $j < $extentCount; $j++) { if ($this->_itemId[$i]['extents'][$j]['offset'] > 0xffffffff) { $totalSize += 8 * $extentCount; } else { $totalSize += 4 * $extentCount; } if ($this->_itemId[$i]['extents'][$j]['length'] > 0xffffffff) { $totalSize += 8 * $extentCount; } else { $totalSize += 4 * $extentCount; } } } return parent::getHeapSize() + $totalSize; }