mirror of
https://github.com/JulianGro/overte.git
synced 2025-08-08 10:07:48 +02:00
removed unneeded append methods from OctreePacketData
This commit is contained in:
parent
93c3f90c95
commit
b6b5078048
2 changed files with 0 additions and 6 deletions
|
@ -385,7 +385,6 @@ bool OctreePacketData::appendValue(const QVector<glm::vec3>& value) {
|
|||
uint16_t qVecSize = value.size();
|
||||
uint16_t sizeLength = sizeof(qVecSize);
|
||||
bool success = append((const unsigned char*)&qVecSize, sizeLength);
|
||||
qDebug()<<"appendlength"<<qVecSize;
|
||||
if(success){
|
||||
_bytesOfValues += sizeLength;
|
||||
_totalBytesOfValues += sizeLength;
|
||||
|
@ -469,9 +468,6 @@ bool OctreePacketData::appendRawData(const unsigned char* data, int length) {
|
|||
}
|
||||
return success;
|
||||
}
|
||||
bool OctreePacketData::appendRawData(QByteArray data) {
|
||||
return appendRawData((unsigned char *)data.data(), data.size());
|
||||
}
|
||||
|
||||
quint64 OctreePacketData::_compressContentTime = 0;
|
||||
quint64 OctreePacketData::_compressContentCalls = 0;
|
||||
|
@ -603,6 +599,5 @@ int OctreePacketData::uppackDataFromBytes(const unsigned char *dataBytes, QVecto
|
|||
qDebug()<<"unpacking length"<<length;
|
||||
result.resize(length);
|
||||
memcpy(result.data(), dataBytes, length * sizeof(glm::vec3));
|
||||
|
||||
return sizeof(uint16_t) + length * sizeof(glm::vec3);
|
||||
}
|
|
@ -186,7 +186,6 @@ public:
|
|||
|
||||
/// appends raw bytes, might fail if byte would cause packet to be too large
|
||||
bool appendRawData(const unsigned char* data, int length);
|
||||
bool appendRawData(QByteArray);
|
||||
|
||||
/// returns a byte offset from beginning of the uncompressed stream based on offset from end.
|
||||
/// Positive offsetFromEnd returns that many bytes before the end of uncompressed stream
|
||||
|
|
Loading…
Reference in a new issue