Search Options

Results per page
Sort
Preferred Languages
Advance

Results 371 - 380 of 740 for bzero (0.05 sec)

  1. src/test/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationResponseTest.java

            // SmbInfoAllocation.decode() always returns 20 bytes regardless of len parameter
            assertEquals(20, bytesRead);
            assertNotNull(response.getInfo());
    
            // The info should be created with zero values
            SmbInfoAllocation info = (SmbInfoAllocation) response.getInfo();
            assertEquals(0, info.getCapacity());
            assertEquals(0, info.getFree());
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.9K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformation.java

            SMBUtil.writeInt2(mapInformationLevel(this.informationLevel), dst, dstIndex);
            dstIndex += 2;
    
            /*
             * windows98 has what appears to be another 4 0's followed by the share
             * name as a zero terminated ascii string "\TMP" + '\0'
             *
             * As is this works, but it deviates from the spec section 4.1.6.6 but
             * maybe I should put it in. Wonder what NT does?
             */
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/witness/WitnessUnregisterMessage.java

                // Pad with zeros if context handle is shorter than 20 bytes
                for (int i = contextHandle.length; i < 20; i++) {
                    buf.enc_ndr_small(0);
                }
            } else {
                // Write 20 zero bytes for null context handle
                for (int i = 0; i < 20; i++) {
                    buf.enc_ndr_small(0);
                }
            }
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 09:06:40 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/lease/Smb2LeaseStateTest.java

            assertTrue(Smb2LeaseState.hasWriteCaching(customState));
            assertTrue(Smb2LeaseState.hasHandleCaching(customState));
        }
    
        @Test
        @DisplayName("Should handle zero state")
        void testZeroState() {
            assertFalse(Smb2LeaseState.hasReadCaching(0));
            assertFalse(Smb2LeaseState.hasWriteCaching(0));
            assertFalse(Smb2LeaseState.hasHandleCaching(0));
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 00:16:17 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/trans/nt/NtTransQuerySecurityDescResponseTest.java

        @Test
        @DisplayName("Test readDataWireFormat with error code returns 4")
        void testReadDataWireFormatWithErrorCode() throws Exception {
            byte[] buffer = new byte[100];
    
            // Set error code to non-zero
            setErrorCode(response, 1);
    
            int result = response.readDataWireFormat(buffer, 0, buffer.length);
    
            assertEquals(4, result);
            assertNull(response.getSecurityDescriptor());
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SmbTreeConnection.java

                        }
                    }
                }
            } else if (usage < 0) {
                log.error("Usage count dropped below zero " + this);
                throw new RuntimeCIFSException("Usage count dropped below zero");
            }
        }
    
        /**
         * Close the tree connection (implements AutoCloseable)
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 30.4K bytes
    - Viewed (1)
  7. src/main/java/jcifs/pac/PacUnicodeString.java

            return this.pointer;
        }
    
        /**
         * Validates the provided string against this structure's metadata.
         * Checks that the string length matches the expected length and that
         * null strings have a zero pointer.
         *
         * @param string the string to validate
         * @return the validated string
         * @throws PACDecodingException if validation fails
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.9K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/entity/SearchLogEventTest.java

            // Test null version
            NullSearchLogEvent nullEvent = new NullSearchLogEvent();
            assertNull(nullEvent.getVersionNo());
    
            // Test zero version
            EmptySearchLogEvent emptyEvent = new EmptySearchLogEvent();
            assertEquals(Long.valueOf(0L), emptyEvent.getVersionNo());
    
            // Test negative version
            event.setVersionNo(-1L);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 11.6K bytes
    - Viewed (0)
  9. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/InterruptionUtil.java

          long remainingNanos = unit.toNanos(timeout);
          long end = System.nanoTime() + remainingNanos;
    
          while (true) {
            try {
              // TimeUnit.timedJoin() treats negative timeouts just like zero.
              NANOSECONDS.timedJoin(thread, remainingNanos);
              return;
            } catch (InterruptedException e) {
              interrupted = true;
              remainingNanos = end - System.nanoTime();
            }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 4.5K bytes
    - Viewed (0)
Back to top