Add more accessors to mammoth classes

This commit is contained in:
Drew Galbraith 2023-06-16 01:29:49 -07:00
parent 71e51730b7
commit 6e20e5a610
4 changed files with 7 additions and 1 deletions

View file

@ -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;