diff -r 90bf9049e5eb -r 2e6cbacafdc7 sources/network/bytestream.h --- 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& data); int bytesLeft() const; - ByteArray::iterator getCurrentIterator(); + std::vector::iterator getCurrentIterator(); int position() const; - ByteArray readBuffer(int length); + std::vector 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& 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& m_data; int m_position; int8_t read();