func (d *Domain) SetMaxMemory(memory uint64) error { result := C.virDomainSetMaxMemory(d.cptr, C.ulong(memory)) if result == -1 { return GetLastError() } return nil }
func (d *VirDomain) SetMaxMemory(memory uint) error { result := C.virDomainSetMaxMemory(d.ptr, C.ulong(memory)) if result == -1 { return errors.New(GetLastError()) } return nil }