getBackingMemory method

*[<Null safety>](https://dart.dev/null-safety)*
  • @override

Vmo getBackingMemory (dynamic flags)

override

Implementation

@override
Vmo getBackingMemory(VmoFlags flags) {
  if (_sharingMode == VmoSharingMode.shareDuplicate) {
    return _vmo.duplicate(ZX.RIGHTS_BASIC |
        ZX.RIGHT_READ |
        ZX.RIGHT_MAP |
        ZX.RIGHT_GET_PROPERTY);
  }
  throw fidl.MethodException(ZX.ERR_NOT_SUPPORTED);
}