Fixed the invalid packet splitting algorithm
This commit is contained in:
parent
5842bbe067
commit
bcbff04979
@ -449,12 +449,12 @@ namespace ts {
|
||||
this->packet_id_bytes[1] = id & 0xFFU;
|
||||
}
|
||||
|
||||
[[nodiscard]] inline auto packet_id() const {
|
||||
[[nodiscard]] inline uint16_t packet_id() const {
|
||||
return (uint16_t) (this->packet_id_bytes[0] << 8U) | this->packet_id_bytes[1];
|
||||
}
|
||||
|
||||
[[nodiscard]] inline auto packet_type() const {
|
||||
return (PacketType) (this->type_and_flags & 0xF);
|
||||
return (PacketType) (this->type_and_flags & 0xFU);
|
||||
}
|
||||
private:
|
||||
void object_freed();
|
||||
|
Loading…
x
Reference in New Issue
Block a user