Commit 3544ad22 authored by Ronan's avatar Ronan

feat(Content): add `isEmpty` method

parent c67b913d
......@@ -128,4 +128,8 @@ size_t Content::getSize () const {
return d->body.size();
}
bool Content::isEmpty () const {
return getSize() == 0;
}
LINPHONE_END_NAMESPACE
......@@ -48,12 +48,16 @@ public:
const std::vector<char> &getBody () const;
std::string getBodyAsString () const;
void setBody (const std::vector<char> &body);
void setBody (const std::vector<char> &&body);
void setBody (const std::string &body);
void setBody (const void *buffer, size_t size);
size_t getSize () const;
bool isEmpty () const;
private:
L_DECLARE_PRIVATE(Content);
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment