Packet& Packet::operator<<(int8_t value)
{
- return *this << (uint8_t)value;
+ return *this << reinterpret_cast<uint8_t&>(value);
}
Packet& Packet::operator<<(int16_t value)
{
- return *this << (uint16_t)value;
+ return *this << reinterpret_cast<uint16_t&>(value);
}
Packet& Packet::operator<<(int32_t value)
{
- return *this << (uint32_t)value;
+ return *this << reinterpret_cast<uint32_t&>(value);
}
Packet& Packet::operator<<(int64_t value)
{
- return *this << (uint64_t)value;
+ return *this << reinterpret_cast<uint64_t&>(value);
}
Packet& Packet::operator>>(int8_t& value)
{
- return *this >> (uint8_t&)value;
+ return *this >> reinterpret_cast<uint8_t&>(value);
}
Packet& Packet::operator>>(int16_t& value)
{
- return *this >> (uint16_t&)value;
+ return *this >> reinterpret_cast<uint16_t&>(value);
}
Packet& Packet::operator>>(int32_t& value)
{
- return *this >> (uint32_t&)value;
+ return *this >> reinterpret_cast<uint32_t&>(value);
}
Packet& Packet::operator>>(int64_t& value)
{
- return *this >> (uint64_t&)value;
+ return *this >> reinterpret_cast<uint64_t&>(value);
}
Packet& Packet::operator>>(uint8_t& value)