- Sort Score
- Result 10 results
- Languages All
Results 151 - 160 of 404 for negation (0.04 sec)
-
src/test/java/jcifs/smb1/smb1/SmbComCloseTest.java
// fid 0x1234, lastWriteTime 0 -> UTime all 0xFF return Stream.of(Arguments.of(0x1234, 0L, new byte[] { 0x34, 0x12, (byte) 0xFF, (byte) 0xFF, (byte) 0xFF, (byte) 0xFF }), // negative fid wraps around, lastWriteTime = 1000 -> 1 second -> int value 1 Arguments.of(-1, 1000L, new byte[] { (byte) 0xFF, (byte) 0xFF, 0x01, 0x00, 0x00, 0x00 })); } /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.8K bytes - Viewed (0) -
utils/utils.go
// RTrimSlice Right trims the given slice by given length func RTrimSlice[T any](v []T, trimLen int) []T { if trimLen >= len(v) { // trimLen greater than slice len means fully sliced return v[:0] } if trimLen < 0 { // negative trimLen is ignored return v[:] } return v[:len(v)-trimLen]
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Thu Aug 22 11:03:42 UTC 2024 - 4.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/SrvRequestResumeKeyResponseTest.java
@Test @DisplayName("Test decode throws exception with negative length") void testDecodeThrowsExceptionWithNegativeLength() { byte[] buffer = new byte[28]; SMBProtocolDecodingException exception = assertThrows(SMBProtocolDecodingException.class, () -> response.decode(buffer, 0, -1), "Should throw exception when length is negative");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.9K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/FileEntryTest.java
void nullName() { FileEntry mock = mock(FileEntry.class); when(mock.getName()).thenReturn(null); assertNull(mock.getName()); } @Test @DisplayName("Negative length is allowed via mock") void negativeLength() { FileEntry mock = mock(FileEntry.class); when(mock.length()).thenReturn(-10L); assertEquals(-10L, mock.length()); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/nego/Smb2NegotiateResponse.java
} if (securityBufferOffset < 0) { throw new SMBProtocolDecodingException("Invalid security buffer offset: " + securityBufferOffset + " (must be non-negative)"); } final int hdrStart = getHeaderStart(); if (securityBufferLength > 0) { // Validate that security buffer doesn't exceed available data
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 24K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkCopyTest.java
assertEquals(expected, buffer[i], "Pattern mismatch at position " + i); } } @Test @DisplayName("Should handle chunks with negative values") void testChunksWithNegativeValues() { // Given byte[] sourceKey = new byte[SOURCE_KEY_SIZE]; SrvCopychunk chunk = new SrvCopychunk(-1L, -100L, -1);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 23.1K bytes - Viewed (0) -
guava/src/com/google/common/collect/HashMultiset.java
* elements. * * @param distinctElements the expected number of distinct elements * @throws IllegalArgumentException if {@code distinctElements} is negative */ public static <E extends @Nullable Object> HashMultiset<E> create(int distinctElements) { return new HashMultiset<>(distinctElements); } /**
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 3.2K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/thumbnail/impl/EmptyGeneratorTest.java
// Test setting zero value emptyGenerator.setDirectoryNameLength(0); assertEquals(0, emptyGenerator.directoryNameLength); // Test setting negative value emptyGenerator.setDirectoryNameLength(-1); assertEquals(-1, emptyGenerator.directoryNameLength); } public void test_setMaxRedirectCount() { // Initialize without container
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 6.3K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CacheCorruptionTest.kt
assertThat(bodySource.readUtf8()).isEqualTo("ABC.1") corruptor() return client.newCall(request).execute() } /** * @param delta the offset from the current date to use. Negative values yield dates in the past; * positive values yield dates in the future. */ private fun formatDate( delta: Long, timeUnit: TimeUnit,
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Jun 18 12:28:21 UTC 2025 - 6K bytes - Viewed (0) -
src/main/java/jcifs/netbios/SessionServicePacket.java
static final int SESSION_REQUEST = 0x81; /** * NetBIOS positive session response packet type. */ public static final int POSITIVE_SESSION_RESPONSE = 0x82; /** * NetBIOS negative session response packet type. */ public static final int NEGATIVE_SESSION_RESPONSE = 0x83; static final int SESSION_RETARGET_RESPONSE = 0x84; static final int SESSION_KEEP_ALIVE = 0x85;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 5.2K bytes - Viewed (0)