- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 122 for boundary (0.04 sec)
-
src/test/java/jcifs/internal/smb2/io/Smb2ReadRequestTest.java
assertEquals(expectedSize, request.size()); } @Test @DisplayName("Should align size to 8-byte boundary") void testSizeAlignment() { int size = request.size(); assertEquals(0, size % 8, "Size should be aligned to 8-byte boundary"); } @Test @DisplayName("Should have consistent size regardless of parameters")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 24.8K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/util/MemoryUtilTest.java
} catch (Exception e) { // Expected for negative values } // Test boundary values assertEquals("1bytes", MemoryUtil.byteCountToDisplaySize(1L)); assertEquals("999bytes", MemoryUtil.byteCountToDisplaySize(999L)); // Test very large values close to EB boundary assertEquals("1.024EB", MemoryUtil.byteCountToDisplaySize(FileUtils.ONE_EB));
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 12 07:34:10 UTC 2025 - 11.8K bytes - Viewed (0) -
guava/src/com/google/common/collect/RangeMap.java
* * <p>Any parts of the range not already present in this map are mapped to the specified value, * unless the value is {@code null}. * * <p>Any existing entry spanning either range boundary may be split at the boundary, even if the * merge does not affect its value. For example, if {@code rangeMap} had one entry {@code [1, 5] * => 3} then {@code rangeMap.merge(Range.closed(0,2), 3, Math::max)} could yield a map with the
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 7.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/CreateContextResponseTest.java
} @Test @DisplayName("Should handle boundary conditions in decode") void testBoundaryConditions() throws SMBProtocolDecodingException { byte[] buffer = new byte[100]; TestCreateContextResponse response = new TestCreateContextResponse("BOUNDARY".getBytes(StandardCharsets.UTF_8)); // Test at buffer start
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 16.2K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/persistent/DurableHandleRequest.java
dstIndex += 4; // Write context name System.arraycopy(CONTEXT_NAME_BYTES, 0, dst, dstIndex, 4); dstIndex += 4; // Padding to align data to 8-byte boundary dstIndex += 4; // Write durable handle request data (16 bytes of reserved) for (int i = 0; i < 16; i++) { dst[dstIndex + i] = 0; } dstIndex += 16;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 04:51:33 UTC 2025 - 2.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2WriteRequestTest.java
@DisplayName("Should align size to 8-byte boundary") void testSizeAlignment() { // Test various data lengths to ensure 8-byte alignment for (int i = 0; i < 16; i++) { request.setData(new byte[i], 0, i); int size = request.size(); assertEquals(0, size % 8, "Size should be aligned to 8-byte boundary"); } } }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 22.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/TransWaitNamedPipeResponseTest.java
assertEquals(0, response.readParametersWireFormat(largeBuffer, 0, 65536)); assertEquals(0, response.readDataWireFormat(largeBuffer, 0, 65536)); } @Test @DisplayName("Test boundary conditions for read methods with zero length") void testReadMethodsWithZeroLength() { // Arrange byte[] buffer = new byte[100]; // Act & Assert
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComTreeDisconnectTest.java
assertEquals(0, smbComTreeDisconnect.readBytesWireFormat(buffer, i)); } } /** * Test boundary conditions for buffer indices */ @Test @DisplayName("Test boundary conditions for buffer indices") public void testBoundaryConditions() { // Given smbComTreeDisconnect = new SmbComTreeDisconnect(config);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.5K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/lease/DirectoryLeaseContext.java
return 32; } @Override public int size() { // Context header: 16 bytes // Name: 4 bytes ("DLse") // Padding: 4 bytes (to align data to 8-byte boundary) // Standard lease data: 32 bytes // Directory-specific data: 20 bytes (CacheScope(4) + MaxCacheAge(8) + Flags(4) + NotificationFilter(4)) return 16 + 4 + 4 + 32 + 20; } @Override
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 02:21:31 UTC 2025 - 9.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2FlushRequestTest.java
} @Test @DisplayName("size should return correct message size") void testSize() { int expectedSize = Smb2Constants.SMB2_HEADER_LENGTH + 24; // size8 method rounds up to 8-byte boundary int expectedAlignedSize = (expectedSize + 7) & ~7; assertEquals(expectedAlignedSize, request.size()); } @Test @DisplayName("writeBytesWireFormat should write correct structure")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0)