Lines Matching refs:CRC32Byte

34   public static long CRC32Byte(int value) {  in CRC32Byte()  method in Main
65 assertEqual(0xD202EF8DL, CRC32Byte(0x0)); in TestCRC32Update()
66 assertEqual(0xD202EF8DL, CRC32Byte(0x0100)); in TestCRC32Update()
67 assertEqual(0xD202EF8DL, CRC32Byte(0x010000)); in TestCRC32Update()
68 assertEqual(0xD202EF8DL, CRC32Byte(0x01000000)); in TestCRC32Update()
69 assertEqual(0xD202EF8DL, CRC32Byte(0xff00)); in TestCRC32Update()
70 assertEqual(0xD202EF8DL, CRC32Byte(0xffff00)); in TestCRC32Update()
71 assertEqual(0xD202EF8DL, CRC32Byte(0xffffff00)); in TestCRC32Update()
72 assertEqual(0xD202EF8DL, CRC32Byte(0x1200)); in TestCRC32Update()
73 assertEqual(0xD202EF8DL, CRC32Byte(0x123400)); in TestCRC32Update()
74 assertEqual(0xD202EF8DL, CRC32Byte(0x12345600)); in TestCRC32Update()
75 assertEqual(0xD202EF8DL, CRC32Byte(Integer.MIN_VALUE)); in TestCRC32Update()
79 assertEqual(0xA505DF1BL, CRC32Byte(0x1)); in TestCRC32Update()
80 assertEqual(0xA505DF1BL, CRC32Byte(0x0101)); in TestCRC32Update()
81 assertEqual(0xA505DF1BL, CRC32Byte(0x010001)); in TestCRC32Update()
82 assertEqual(0xA505DF1BL, CRC32Byte(0x01000001)); in TestCRC32Update()
83 assertEqual(0xA505DF1BL, CRC32Byte(0xff01)); in TestCRC32Update()
84 assertEqual(0xA505DF1BL, CRC32Byte(0xffff01)); in TestCRC32Update()
85 assertEqual(0xA505DF1BL, CRC32Byte(0xffffff01)); in TestCRC32Update()
86 assertEqual(0xA505DF1BL, CRC32Byte(0x1201)); in TestCRC32Update()
87 assertEqual(0xA505DF1BL, CRC32Byte(0x123401)); in TestCRC32Update()
88 assertEqual(0xA505DF1BL, CRC32Byte(0x12345601)); in TestCRC32Update()
92 assertEqual(0x42BDF21CL, CRC32Byte(0x0f)); in TestCRC32Update()
93 assertEqual(0x42BDF21CL, CRC32Byte(0x010f)); in TestCRC32Update()
94 assertEqual(0x42BDF21CL, CRC32Byte(0x01000f)); in TestCRC32Update()
95 assertEqual(0x42BDF21CL, CRC32Byte(0x0100000f)); in TestCRC32Update()
96 assertEqual(0x42BDF21CL, CRC32Byte(0xff0f)); in TestCRC32Update()
97 assertEqual(0x42BDF21CL, CRC32Byte(0xffff0f)); in TestCRC32Update()
98 assertEqual(0x42BDF21CL, CRC32Byte(0xffffff0f)); in TestCRC32Update()
99 assertEqual(0x42BDF21CL, CRC32Byte(0x120f)); in TestCRC32Update()
100 assertEqual(0x42BDF21CL, CRC32Byte(0x12340f)); in TestCRC32Update()
101 assertEqual(0x42BDF21CL, CRC32Byte(0x1234560f)); in TestCRC32Update()
105 assertEqual(0xFF000000L, CRC32Byte(0x00ff)); in TestCRC32Update()
106 assertEqual(0xFF000000L, CRC32Byte(0x01ff)); in TestCRC32Update()
107 assertEqual(0xFF000000L, CRC32Byte(0x0100ff)); in TestCRC32Update()
108 assertEqual(0xFF000000L, CRC32Byte(0x010000ff)); in TestCRC32Update()
109 assertEqual(0xFF000000L, CRC32Byte(0x0000ffff)); in TestCRC32Update()
110 assertEqual(0xFF000000L, CRC32Byte(0x00ffffff)); in TestCRC32Update()
111 assertEqual(0xFF000000L, CRC32Byte(0xffffffff)); in TestCRC32Update()
112 assertEqual(0xFF000000L, CRC32Byte(0x12ff)); in TestCRC32Update()
113 assertEqual(0xFF000000L, CRC32Byte(0x1234ff)); in TestCRC32Update()
114 assertEqual(0xFF000000L, CRC32Byte(0x123456ff)); in TestCRC32Update()
115 assertEqual(0xFF000000L, CRC32Byte(Integer.MAX_VALUE)); in TestCRC32Update()
247 assertEqual(CRC32Byte(0), CRC32ByteArray(new byte[] {0})); in TestCRC32UpdateBytes()
248 assertEqual(CRC32Byte(0), CRC32ByteArray(new byte[] {0}, 0, 1)); in TestCRC32UpdateBytes()
249 assertEqual(CRC32Byte(1), CRC32ByteArray(new byte[] {1})); in TestCRC32UpdateBytes()
250 assertEqual(CRC32Byte(1), CRC32ByteArray(new byte[] {1}, 0, 1)); in TestCRC32UpdateBytes()
251 assertEqual(CRC32Byte(0x0f), CRC32ByteArray(new byte[] {0x0f})); in TestCRC32UpdateBytes()
252 assertEqual(CRC32Byte(0x0f), CRC32ByteArray(new byte[] {0x0f}, 0, 1)); in TestCRC32UpdateBytes()
253 assertEqual(CRC32Byte(0xff), CRC32ByteArray(new byte[] {-1})); in TestCRC32UpdateBytes()
254 assertEqual(CRC32Byte(0xff), CRC32ByteArray(new byte[] {-1}, 0, 1)); in TestCRC32UpdateBytes()
361 assertEqual(CRC32Byte(0), CRC32ByteBuffer(new byte[] {0}, 0, 1)); in TestCRC32UpdateByteBuffer()
362 assertEqual(CRC32Byte(1), CRC32ByteBuffer(new byte[] {1}, 0, 1)); in TestCRC32UpdateByteBuffer()
363 assertEqual(CRC32Byte(0x0f), CRC32ByteBuffer(new byte[] {0x0f}, 0, 1)); in TestCRC32UpdateByteBuffer()
364 assertEqual(CRC32Byte(0xff), CRC32ByteBuffer(new byte[] {-1}, 0, 1)); in TestCRC32UpdateByteBuffer()
447 assertEqual(CRC32Byte(0), CRC32DirectByteBuffer(new byte[] {0}, 0, 1)); in TestCRC32UpdateDirectByteBuffer()
448 assertEqual(CRC32Byte(1), CRC32DirectByteBuffer(new byte[] {1}, 0, 1)); in TestCRC32UpdateDirectByteBuffer()
449 assertEqual(CRC32Byte(0x0f), CRC32DirectByteBuffer(new byte[] {0x0f}, 0, 1)); in TestCRC32UpdateDirectByteBuffer()
450 assertEqual(CRC32Byte(0xff), CRC32DirectByteBuffer(new byte[] {-1}, 0, 1)); in TestCRC32UpdateDirectByteBuffer()