- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for validateArrayBounds (0.07 seconds)
-
src/main/java/jcifs/util/InputValidator.java
* @param dst destination array * @param dstOffset destination offset * @param length copy length * @throws IllegalArgumentException if bounds are invalid */ public static void validateArrayBounds(byte[] src, int srcOffset, byte[] dst, int dstOffset, int length) { if (src == null || dst == null) { throw new IllegalArgumentException("Arrays cannot be null"); }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 13.5K bytes - Click Count (0) -
src/test/java/jcifs/util/InputValidatorTest.java
assertDoesNotThrow(() -> InputValidator.validateArrayBounds(src, 0, dst, 0, 100)); assertDoesNotThrow(() -> InputValidator.validateArrayBounds(src, 50, dst, 50, 50)); assertThrows(IllegalArgumentException.class, () -> InputValidator.validateArrayBounds(null, 0, dst, 0, 10)); assertThrows(IllegalArgumentException.class, () -> InputValidator.validateArrayBounds(src, 0, null, 0, 10));Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 11.9K bytes - Click Count (0)