- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for validateFileOperation (0.78 sec)
-
src/test/java/jcifs/util/ServerResponseValidatorTest.java
public void testValidFileOperation() throws Exception { validator.validateFileOperation(0, 1024, 10000); validator.validateFileOperation(5000, 1000, 10000); } @Test public void testFileOperationNegativeOffset() throws Exception { assertThrows(SmbException.class, () -> { validator.validateFileOperation(-1, 100, 1000); }); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 14.2K bytes - Viewed (0) -
src/main/java/jcifs/util/ServerResponseValidator.java
* * @param offset file offset * @param length operation length * @param fileSize total file size * @throws SmbException if parameters are invalid */ public void validateFileOperation(long offset, long length, long fileSize) throws SmbException { totalValidations.incrementAndGet(); if (offset < 0) { failedValidations.incrementAndGet();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 16.6K bytes - Viewed (0)