--- a/sources/network/bytestream.h Wed Jan 27 19:28:18 2021 +0200 +++ b/sources/network/bytestream.h Wed Jan 27 19:32:55 2021 +0200 @@ -56,12 +56,12 @@ class Bytestream { public: - Bytestream(ByteArray& data); + Bytestream(std::vector<unsigned char>& data); int bytesLeft() const; - ByteArray::iterator getCurrentIterator(); + std::vector<unsigned char>::iterator getCurrentIterator(); int position() const; - ByteArray readBuffer(int length); + std::vector<unsigned char> readBuffer(int length); int8_t readByte(); int32_t readLong(); int16_t readShort(); @@ -70,7 +70,7 @@ void rewind(); void seek(int position); void write(const unsigned char* val, unsigned int length); - void writeBuffer(const ByteArray& other); + void writeBuffer(const std::vector<unsigned char>& other); void writeByte(int8_t value); void writeDouble(double val); void writeFloat(float value); @@ -79,7 +79,7 @@ void writeString(const std::string& string); private: - ByteArray& m_data; + std::vector<unsigned char>& m_data; int m_position; int8_t read();