diff -r 42bb29924218 -r de7574d292ad sources/network/bytestream.h --- 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& data); + Bytestream(ByteArray& data); int bytesLeft() const; - Vector::Iterator getCurrentIterator(); + ByteArray::Iterator getCurrentIterator(); int position() const; - Vector 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& 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& m_data; + ByteArray& m_data; int m_position; int8_t read();