sources/list.h

changeset 163
5948441a1951
parent 158
de7574d292ad
child 164
e3794f48a589
equal deleted inserted replaced
162:c9c0f1b62e42 163:5948441a1951
397 { 397 {
398 return data(); 398 return data();
399 } 399 }
400 }; 400 };
401 401
402 typedef Vector<unsigned char> ByteArray; 402 class ByteArray : public Vector<unsigned char>
403 {
404 public:
405 ByteArray(std::initializer_list<unsigned char> initializerList);
406
407 template<typename ...Args>
408 ByteArray(Args&& ...args);
409
410 class String quote() const;
411 };
412
413 /*!
414 * \brief Constructs a byte array by passing all arguments to Vector<unsigned char>'s constructor.
415 * \param args Arguments to pass.
416 */
417 template<typename ...Args>
418 ByteArray::ByteArray(Args&& ...args) :
419 Vector<unsigned char>(args...) {}
403 420
404 END_ZFC_NAMESPACE 421 END_ZFC_NAMESPACE

mercurial