test_class.declarator: inputStream
test_class.original_string: InputStream inputStream;
test_class.type: InputStream
test_class.var_name: inputStream
test_class.declarator: virtualSize = 21474836480L
test_class.modifier: final
test_class.original_string: final Long virtualSize = 21474836480L;
test_class.type: Long
test_class.var_name: virtualSize
test_class.file: utils/src/test/java/com/cloud/utils/storage/QCOW2UtilsTest.java
test_class.identifier: QCOW2UtilsTest
test_case.body: @Test
      public void getVirtualSizeTest() throws IOException {
          assertEquals(virtualSize.longValue(), QCOW2Utils.getVirtualSize(inputStream));
      }
test_case.class_method_signature: QCOW2UtilsTest.getVirtualSizeTest()
test_case.full_signature: @Test public void getVirtualSizeTest()
test_case.identifier: getVirtualSizeTest
test_case.invocations: assertEquals longValue getVirtualSize
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void getVirtualSizeTest()
focal_class.declarator: VIRTUALSIZE_HEADER_LOCATION = 24
focal_class.modifier: private static final
focal_class.original_string: private static final int VIRTUALSIZE_HEADER_LOCATION = 24;
focal_class.type: int
focal_class.var_name: VIRTUALSIZE_HEADER_LOCATION
focal_class.declarator: VIRTUALSIZE_HEADER_LENGTH = 8
focal_class.modifier: private static final
focal_class.original_string: private static final int VIRTUALSIZE_HEADER_LENGTH = 8;
focal_class.type: int
focal_class.var_name: VIRTUALSIZE_HEADER_LENGTH
focal_class.file: utils/src/main/java/com/cloud/utils/storage/QCOW2Utils.java
focal_class.identifier: QCOW2Utils
focal_class.class_method_signature: QCOW2Utils.QCOW2Utils()
focal_class.full_signature: private  QCOW2Utils()
focal_class.identifier: QCOW2Utils
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  QCOW2Utils()
focal_class.class_method_signature: QCOW2Utils.getVirtualSizeHeaderLocation()
focal_class.full_signature: public static int getVirtualSizeHeaderLocation()
focal_class.identifier: getVirtualSizeHeaderLocation
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getVirtualSizeHeaderLocation()
focal_class.class_method_signature: QCOW2Utils.getVirtualSize(InputStream inputStream)
focal_class.full_signature: public static long getVirtualSize(InputStream inputStream)
focal_class.identifier: getVirtualSize
focal_class.modifiers: public static
focal_class.parameters: (InputStream inputStream)
focal_class.return: long
focal_class.signature: long getVirtualSize(InputStream inputStream)
focal_method.body: public static long getVirtualSize(InputStream inputStream) throws IOException {
          byte[] bytes = new byte[VIRTUALSIZE_HEADER_LENGTH];
  
          if (inputStream.skip(VIRTUALSIZE_HEADER_LOCATION) != VIRTUALSIZE_HEADER_LOCATION) {
              throw new IOException("Unable to skip to the virtual size header");
          }
  
          if (inputStream.read(bytes) != VIRTUALSIZE_HEADER_LENGTH) {
              throw new IOException("Unable to properly read the size");
          }
  
          return NumbersUtil.bytesToLong(bytes);
      }
focal_method.class_method_signature: QCOW2Utils.getVirtualSize(InputStream inputStream)
focal_method.full_signature: public static long getVirtualSize(InputStream inputStream)
focal_method.identifier: getVirtualSize
focal_method.invocations: skip read bytesToLong
focal_method.modifiers: public static
focal_method.parameters: (InputStream inputStream)
focal_method.return: long
focal_method.signature: long getVirtualSize(InputStream inputStream)