mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 17:35:45 +02:00
Merge branch 'atp' of https://github.com/birarda/hifi into protocol
This commit is contained in:
commit
405e4f37ab
1 changed files with 2 additions and 2 deletions
|
@ -57,11 +57,11 @@ private:
|
|||
QByteArray _extendedHeader;
|
||||
};
|
||||
|
||||
template <typename T> template <typename U> PacketList<T>::readPrimitive(U* data) {
|
||||
template <typename T> template <typename U> qint64 PacketList<T>::readPrimitive(U* data) {
|
||||
return QIODevice::read(reinterpret_cast<char*>(data), sizeof(U));
|
||||
}
|
||||
|
||||
template <typename T> template <typename U> PacketList<T>::writePrimitive(const U& data) {
|
||||
template <typename T> template <typename U> qint64 PacketList<T>::writePrimitive(const U& data) {
|
||||
static_assert(!std::is_pointer<U>::value, "U must not be a pointer");
|
||||
return QIODevice::write(reinterpret_cast<const char*>(&data), sizeof(U));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue