Forum Discussion

Andy_Herrman_22's avatar
Andy_Herrman_22
Icon for Nimbostratus rankNimbostratus
Aug 09, 2007

ULong64 and Java

Just want to do a quick sanity check here. The 'long' type in Java is 64 bits, so theoretically the value of a ULong64 from iControl should fit just fine in a Java long value. Here's the conversion I'm doing:


  CommonULong64 ulongValue = /* get ULong64 value somehow */;
  long value = (ulongValue.getHigh() << 32) | ulongValue.getLow();

I'm pretty sure this will work. Anyone see any problems with it?
No RepliesBe the first to reply