Add more accessors to mammoth classes
This commit is contained in:
parent
71e51730b7
commit
6e20e5a610
4 changed files with 7 additions and 1 deletions
|
|
@ -29,6 +29,8 @@ uint64_t Channel::release_cap() {
|
|||
return cap;
|
||||
}
|
||||
|
||||
uint64_t Channel::cap() { return chan_cap_; }
|
||||
|
||||
z_err_t Channel::WriteStr(const char* msg) {
|
||||
if (!chan_cap_) {
|
||||
return Z_ERR_NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue