- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for validateArrayBounds (0.07 sec)
-
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));
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 11.9K bytes - Viewed (0) -
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"); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 13.5K bytes - Viewed (0)