test_class.file: filter-service-core/src/test/java/cn/leancloud/filter/service/utils/Crc32CTest.java
test_class.identifier: Crc32CTest
test_case.body: @Test
      public void testUpdate() {
          final byte[] bytes = "Hello world".getBytes();
          final int len = bytes.length;
  
          Checksum crc1 = Crc32C.create();
          Checksum crc2 = Crc32C.create();
          Checksum crc3 = Crc32C.create();
  
          crc1.update(bytes, 0, len);
          for (int i = 0; i < len; i++)
              crc2.update(bytes[i]);
          crc3.update(bytes, 0, len / 2);
          crc3.update(bytes, len / 2, len - len / 2);
  
          assertThat(crc1.getValue()).isEqualTo(crc2.getValue());
          assertThat(crc1.getValue()).isEqualTo(crc3.getValue());
      }
test_case.class_method_signature: Crc32CTest.testUpdate()
test_case.full_signature: @Test public void testUpdate()
test_case.identifier: testUpdate
test_case.invocations: getBytes create create create update update update update isEqualTo assertThat getValue getValue isEqualTo assertThat getValue getValue
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testUpdate()
focal_class.declarator: CHECKSUM_FACTORY
focal_class.modifier: private static final
focal_class.original_string: private static final ChecksumFactory CHECKSUM_FACTORY;
focal_class.type: ChecksumFactory
focal_class.var_name: CHECKSUM_FACTORY
focal_class.file: filter-service-core/src/main/java/cn/leancloud/filter/service/utils/Crc32C.java
focal_class.identifier: Crc32C
focal_class.class_method_signature: Crc32C.Crc32C()
focal_class.full_signature: private  Crc32C()
focal_class.identifier: Crc32C
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  Crc32C()
focal_class.class_method_signature: Crc32C.compute(byte[] bytes, int offset, int size)
focal_class.full_signature: public static long compute(byte[] bytes, int offset, int size)
focal_class.identifier: compute
focal_class.modifiers: public static
focal_class.parameters: (byte[] bytes, int offset, int size)
focal_class.return: long
focal_class.signature: long compute(byte[] bytes, int offset, int size)
focal_class.class_method_signature: Crc32C.compute(ByteBuffer buffer, int offset, int size)
focal_class.full_signature: public static long compute(ByteBuffer buffer, int offset, int size)
focal_class.identifier: compute
focal_class.modifiers: public static
focal_class.parameters: (ByteBuffer buffer, int offset, int size)
focal_class.return: long
focal_class.signature: long compute(ByteBuffer buffer, int offset, int size)
focal_class.class_method_signature: Crc32C.create()
focal_class.full_signature: public static Checksum create()
focal_class.identifier: create
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: Checksum
focal_class.signature: Checksum create()
focal_class.class_method_signature: Crc32C.updateChecksums(Checksum checksum, ByteBuffer buffer, int offset, int length)
focal_class.full_signature: private static void updateChecksums(Checksum checksum, ByteBuffer buffer, int offset, int length)
focal_class.identifier: updateChecksums
focal_class.modifiers: private static
focal_class.parameters: (Checksum checksum, ByteBuffer buffer, int offset, int length)
focal_class.return: void
focal_class.signature: void updateChecksums(Checksum checksum, ByteBuffer buffer, int offset, int length)
focal_method.body: public static Checksum create() {
          return CHECKSUM_FACTORY.create();
      }
focal_method.class_method_signature: Crc32C.create()
focal_method.full_signature: public static Checksum create()
focal_method.identifier: create
focal_method.invocations: create
focal_method.modifiers: public static
focal_method.parameters: ()
focal_method.return: Checksum
focal_method.signature: Checksum create()