--- a/sources/network/bytestream.h Fri Jul 22 17:50:00 2016 +0300 +++ b/sources/network/bytestream.h Fri Jul 22 17:52:23 2016 +0300 @@ -57,12 +57,12 @@ class Bytestream { public: - Bytestream(Vector<unsigned char>& data); + Bytestream(ByteArray& data); int bytesLeft() const; - Vector<unsigned char>::Iterator getCurrentIterator(); + ByteArray::Iterator getCurrentIterator(); int position() const; - Vector<unsigned char> readBuffer(int length); + ByteArray readBuffer(int length); int8_t readByte(); int32_t readLong(); int16_t readShort(); @@ -71,7 +71,7 @@ void rewind(); void seek(int position); void write(const unsigned char* val, unsigned int length); - void writeBuffer(const Vector<unsigned char>& other); + void writeBuffer(const ByteArray& other); void writeByte(int8_t value); void writeDouble(double val); void writeFloat(float value); @@ -80,7 +80,7 @@ void writeString(const String& string); private: - Vector<unsigned char>& m_data; + ByteArray& m_data; int m_position; int8_t read();