mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-03 20:46:28 +00:00
feat(Content): add isEmpty method
This commit is contained in:
parent
c67b913d0f
commit
3544ad224f
2 changed files with 8 additions and 0 deletions
|
|
@ -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);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue