24 public function __construct(
25 private string $label,
26 private string $indentation,
27 private int $totalHighCostNS,
28 private int $totalMidCostNS,
29 private int $totalLowCostNS,
32 public function getLabel() :
string{
return $this->label; }
34 public function getIndentation() :
string{
return $this->indentation; }
36 public function getTotalHighCostNS() :
int{
return $this->totalHighCostNS; }
38 public function getTotalMidCostNS() :
int{
return $this->totalMidCostNS; }
40 public function getTotalLowCostNS() :
int{
return $this->totalLowCostNS; }
42 public static function read(ByteBufferReader $in) :
self{
43 $label = CommonTypes::getString($in);
44 $indentation = CommonTypes::getString($in);
45 $totalHighCostNS = LE::readUnsignedLong($in);
46 $totalMidCostNS = LE::readUnsignedLong($in);
47 $totalLowCostNS = LE::readUnsignedLong($in);
58 public function write(ByteBufferWriter $out) :
void{
59 CommonTypes::putString($out, $this->label);
60 CommonTypes::putString($out, $this->indentation);
61 LE::writeUnsignedLong($out, $this->totalHighCostNS);
62 LE::writeUnsignedLong($out, $this->totalMidCostNS);
63 LE::writeUnsignedLong($out, $this->totalLowCostNS);