--- a/sources/list.h Sat Jul 23 12:15:52 2016 +0300 +++ b/sources/list.h Sat Jul 23 12:22:23 2016 +0300 @@ -399,6 +399,23 @@ } }; -typedef Vector<unsigned char> ByteArray; +class ByteArray : public Vector<unsigned char> +{ +public: + ByteArray(std::initializer_list<unsigned char> initializerList); + + template<typename ...Args> + ByteArray(Args&& ...args); + + class String quote() const; +}; + +/*! + * \brief Constructs a byte array by passing all arguments to Vector<unsigned char>'s constructor. + * \param args Arguments to pass. + */ +template<typename ...Args> +ByteArray::ByteArray(Args&& ...args) : + Vector<unsigned char>(args...) {} END_ZFC_NAMESPACE