[Mammoth] Add the ability to duplicate an owned memory region.
This commit is contained in:
parent
be392252a4
commit
e7cc98a20c
2 changed files with 5 additions and 0 deletions
|
|
@ -30,6 +30,7 @@ class OwnedMemoryRegion {
|
|||
|
||||
z_cap_t cap() const { return vmmo_cap_; }
|
||||
z_cap_t DuplicateCap();
|
||||
OwnedMemoryRegion Duplicate();
|
||||
|
||||
bool empty() const { return vmmo_cap_ == 0; }
|
||||
explicit operator bool() const { return vmmo_cap_ != 0; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue