Skip to content

Commit d4e78b9

Browse files
committed
added comment for ValidateSaveRestoreSupport
1 parent 511be6a commit d4e78b9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

configuration_arm64.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ package vz
1111
import "C"
1212
import "github.com/Code-Hex/vz/v3/internal/objc"
1313

14+
// ValidateSaveRestoreSupport Determines whether the framework can save or restore the VM’s current configuration.
15+
//
16+
// Verify that a virtual machine with this configuration is savable.
17+
// Not all configuration options can be safely saved and restored from file.
18+
//
19+
// If this evaluates to false, the caller should expect future calls to `(*VirtualMachine).SaveMachineStateToPath` to fail.
20+
// error If not nil, assigned with an error describing the unsupported configuration option.
1421
func (v *VirtualMachineConfiguration) ValidateSaveRestoreSupport() (bool, error) {
1522
nserrPtr := newNSErrorAsNil()
1623
ret := C.validateSaveRestoreSupportWithError(objc.Ptr(v), &nserrPtr)

0 commit comments

Comments
 (0)