isValid property

bool get isValid

Checks whether the underlying shared memory block is still valid and active.

Implementation

bool get isValid {
  if (_base == nullptr || _base.address == 0) return false;
  final magic = Pointer<Uint32>.fromAddress(_base.address).value;
  return magic == vst3ShmMagic;
}