[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
|
|
@ -71,4 +71,8 @@ z_cap_t OwnedMemoryRegion::DuplicateCap() {
|
|||
return cap;
|
||||
}
|
||||
|
||||
OwnedMemoryRegion OwnedMemoryRegion::Duplicate() {
|
||||
return OwnedMemoryRegion::FromCapability(DuplicateCap());
|
||||
}
|
||||
|
||||
} // namespace mmth
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue