Crc32C { public static long compute(byte[] bytes, int offset, int size) { Checksum crc = create(); crc.update(bytes, offset, size); return crc.getValue(); } private  Crc32C(); static long compute(byte[] bytes, int offset, int size); static long compute(ByteBuffer buffer, int offset, int size); static Checksum create();  }
@Test public void testValue() { final byte[] bytes = "Some String".getBytes(); assertThat(Crc32C.compute(bytes, 0, bytes.length)).isEqualTo(608512271); }