24 public function __construct(
25 private int $category,
29 public function getCategory() :
int{
return $this->category; }
31 public function getBytes() :
int{
return $this->bytes; }
33 public static function read(ByteBufferReader $in) :
self{
34 $category = Byte::readUnsigned($in);
35 $bytes = LE::readUnsignedLong($in);
43 public function write(ByteBufferWriter $out) :
void{
44 Byte::writeUnsigned($out, $this->category);
45 LE::writeUnsignedLong($out, $this->bytes);