- Sort Score
- Result 10 results
- Languages All
Results 161 - 170 of 248 for zeros (0.72 sec)
-
src/test/java/jcifs/internal/smb2/ioctl/SrvPipePeekResponseTest.java
assertEquals(0, response.getData().length); // The decode method returns only the header size (16 bytes)\n assertEquals(16, bytesDecoded); } @Test @DisplayName("Test decode with non-zero buffer index") void testDecodeWithNonZeroBufferIndex() throws SMBProtocolDecodingException { // Prepare test data with offset int offset = 10;
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.9K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbSessionImplSecurityTest.java
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 11K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileBothDirectoryInfoTest.java
} @Test @DisplayName("Test decode with zero values") void testDecodeWithZeroValues() throws SMBProtocolDecodingException { // Prepare test data with zero values byte[] buffer = createValidBuffer("zerofile.txt", "ZEROFI~1.TXT", true); // Set zero values - for SMB times, 0 in wire format represents 0 in Java timeRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/TransCallNamedPipeTest.java
// When int bytesWritten = transCallNamedPipe.writeDataWireFormat(dst, 0); // Then assertEquals(maxData.length, bytesWritten); } @Test @DisplayName("Test zero-length write with valid data array") void testZeroLengthWrite() { // Given transCallNamedPipe = new TransCallNamedPipe(mockConfig, TEST_PIPE_NAME, TEST_DATA, 0, 0); byte[] dst = new byte[100];Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.8K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbTreeHandleImpl.java
final long us = this.usageCount.decrementAndGet(); if (us == 0) { this.treeConnection.release(); } else if (us < 0) { throw new RuntimeCIFSException("Usage count dropped below zero"); } } @Override protected void finalize() throws Throwable { try { // Add null check to prevent NPE if object was not fully constructed
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 11.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/Kerb5AuthenticatorTest.java
// Service accessors assertEquals("cifs", auth.getService()); auth.setService(""); assertEquals("", auth.getService()); // Lifetime accessors (edge: zero/negative) auth.setUserLifeTime(0); assertEquals(0, auth.getUserLifeTime()); auth.setUserLifeTime(-1); assertEquals(-1, auth.getUserLifeTime()); auth.setLifeTime(0);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.9K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/srvsvcTest.java
} @Test void testShareInfo0DecodeWithNonNullNetname() throws NdrException { srvsvc.ShareInfo0 shareInfo0 = new srvsvc.ShareInfo0(); when(mockNdrBuffer.dec_ndr_long()).thenReturn(1); // non-zero pointer when(mockDeferredBuffer.dec_ndr_string()).thenReturn("DecodedShare"); shareInfo0.decode(mockNdrBuffer); assertEquals("DecodedShare", shareInfo0.netname);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/multichannel/NetworkInterfaceInfo.java
SMBUtil.writeInt2(445, buffer, offset + 2); // sin_port System.arraycopy(address.getAddress(), 0, buffer, offset + 4, 4); // sin_addr // Remaining bytes stay zero-filled } } private static InetAddress parseSockaddr(byte[] data, int offset) { try { int family = SMBUtil.readInt2(data, offset); if (family == 2) { // AF_INET
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 21 11:13:46 UTC 2025 - 9.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/NtStatusTest.java
// Given int successStatus = NtStatus.NT_STATUS_SUCCESS; // When/Then assertEquals(0x00000000, successStatus); // Success status should be zero assertTrue(successStatus == 0); } @Test @DisplayName("Should identify error status codes") void testErrorStatusIdentification() { // Given int[] errorStatuses =Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileEndOfFileInformationTest.java
// Test negative value FileEndOfFileInformation info1 = new FileEndOfFileInformation(-100L); assertEquals("EndOfFileInformation[endOfFile=-100]", info1.toString()); // Test zero FileEndOfFileInformation info2 = new FileEndOfFileInformation(0L); assertEquals("EndOfFileInformation[endOfFile=0]", info2.toString()); // Test max valueRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.9K bytes - Viewed (0)