@ -11,32 +11,30 @@ namespace pEp
}
template<>
// template<>
int BlobList::size() const
{
return bloblist_length(value);
// faster than .size()==0 because it's not necessary to iterate throgh the whole list
bool BlobList::empty() const
return !(value && value->value);
void BlobList::clear()
free_bloblist(value);
value = nullptr;
void BlobList::push_back(const char*&& s)
void BlobList::push_back(Blob&& s)
auto last = stringlist_add(value, s);
if(value==nullptr)
value = last;
// TODO
////////////////