I am wondering the same thing, but I believe that comes from the
glue/auto-creation of the Java code with the API.
See https://www.virtualbox.org/ticket/11316
On 14/01/2013 09:52, gal wrote:
Using value() method of the enum and converting to long worked...
Is there a reason the value() method returns int and the
IMedium::createBaseStorage demands long?
Thanks,
Gal.
On 01/13/2013 09:39 PM, Maxime Dor wrote:
See inline answers
On 13/01/2013 16:52, gal wrote:
Hello,
I use the JAVA API.
In order to create a harddisk I use vbox.createHardDisk and then
IMedium::createBaseStorage method.
First, the method createBaseStorage requires two long values. the
second value seems to be a value which comes from the enumaration
MediumVariant. Is there a way to extract the long value of a medium
variant from the enumeration? I used fixed values from the source
code...
You can use the value() method on the Enum value I believe
Is there a way to know ( using the API ), before trying to create a
disk file on the host that there is enough space to generate the
disk on that partition ? (e.g. when specifying full location, r/o
location, fixed disk which is larger than the actual space left on
that partition etc... )?
Never tryed that, maybe sopmeone has a better answer for you.
Thanks,
Gal.
_______________________________________________
vbox-dev mailing list
[email protected]
https://www.virtualbox.org/mailman/listinfo/vbox-dev
_______________________________________________
vbox-dev mailing list
[email protected]
https://www.virtualbox.org/mailman/listinfo/vbox-dev
_______________________________________________
vbox-dev mailing list
[email protected]
https://www.virtualbox.org/mailman/listinfo/vbox-dev
_______________________________________________
vbox-dev mailing list
[email protected]
https://www.virtualbox.org/mailman/listinfo/vbox-dev