Search Options

Results per page
Sort
Preferred Languages
Advance

Results 181 - 190 of 248 for zeros (1.22 sec)

  1. src/test/java/jcifs/internal/smb1/com/SmbComQueryInformationTest.java

            assertEquals(0, buffer[1], "Second byte must be null terminator for empty string");
        }
    
        @Test
        @DisplayName("readBytesWireFormat is a no‑op and returns zero")
        void testReadBytesWireFormatNoop() {
            byte[] buffer = new byte[10];
            int used = cmd.readBytesWireFormat(buffer, 0);
            assertEquals(0, used, "readBytesWireFormat is unimplemented and must return 0");
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/smb1/SmbComTransactionResponse.java

            bufferIndex += 2;
            setupCount = buffer[bufferIndex] & 0xFF;
            bufferIndex += 2;
            if ((setupCount != 0) && (LogStream.level > 2)) {
                log.println("setupCount is not zero: " + setupCount);
            }
    
            return bufferIndex - start;
        }
    
        @Override
        int readBytesWireFormat(final byte[] buffer, int bufferIndex) {
            pad = pad1 = 0;
            final int n;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 5.9K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/rdma/SmbDirectNegotiateRequest.java

            SMBUtil.writeInt4(maxReceiveSize, data, idx);
            idx += 4;
            SMBUtil.writeInt4(maxFragmentedSize, data, idx);
            idx += 4;
    
            // Reserved fields (8 bytes)
            // Already zero-initialized
    
            return data;
        }
    
        /**
         * Get size of this message
         *
         * @return size in bytes (32)
         */
        public static int size() {
            return 32;
        }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 24 00:12:28 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/CommonServerMessageBlockTest.java

            when(messageBlock.getMid()).thenReturn(minMid);
    
            messageBlock.setMid(minMid);
            assertEquals(minMid, messageBlock.getMid());
    
            // Test with zero
            long zeroMid = 0L;
            doNothing().when(messageBlock).setMid(zeroMid);
            when(messageBlock.getMid()).thenReturn(zeroMid);
    
            messageBlock.setMid(zeroMid);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.7K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/trans/TransWaitNamedPipeResponseTest.java

            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
            assertEquals(0, response.readSetupWireFormat(buffer, 0, 0));
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  6. src/test/java/jcifs/util/SecureCredentialStorageTest.java

            char[] decrypted = storage.decryptCredentials(encrypted);
            assertNotNull(decrypted, "Decrypted empty data should not be null");
            assertEquals(0, decrypted.length, "Decrypted empty array should have zero length");
        }
    
        @Test
        public void testEncryptDecryptNull() throws Exception {
            byte[] encrypted = storage.encryptCredentials(null);
            assertNull(encrypted, "Encrypting null should return null");
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/multichannel/ChannelInfoTest.java

            channelInfo.setState(ChannelState.ACTIVE);
            int activeScore = channelInfo.getScore();
            assertTrue(activeScore < baseScore);
    
            // Failed channel should have zero score
            channelInfo.setState(ChannelState.FAILED);
            assertEquals(0, channelInfo.getScore());
    
            // Primary channel should have higher score
            channelInfo.setState(ChannelState.ESTABLISHED);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/fscc/FileFsFullSizeInformationTest.java

                assertEquals(1048576L * 8 * 512, fileFsFullSizeInfo.getCapacity());
                assertEquals(524288L * 8 * 512, fileFsFullSizeInfo.getFree());
            }
    
            @Test
            @DisplayName("Should decode buffer with zero values")
            void shouldDecodeBufferWithZeroValues() throws SMBProtocolDecodingException {
                // Given
                ByteBuffer buffer = ByteBuffer.allocate(32);
                buffer.order(ByteOrder.LITTLE_ENDIAN);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 30.5K bytes
    - Viewed (0)
  9. src/main/java/jcifs/util/transport/Transport.java

            }
    
            if (usage == 0) {
                if (log.isTraceEnabled()) {
                    log.trace("Transport usage dropped to zero " + this);
                }
            } else if (usage < 0) {
                throw new RuntimeCIFSException("Usage count dropped below zero");
            }
        }
    
        /**
         * {@inheritDoc}
         *
         * @see java.lang.Object#finalize()
         */
        @Override
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 27.8K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/suggest/entity/ElevateWordTest.java

            assertEquals(roles, elevateWord.getRoles());
        }
    
        @Test
        public void testConstructorWithZeroBoost() {
            // Test constructor with zero boost
            String word = "zero boost";
            float boost = 0.0f;
            List<String> readings = Arrays.asList("reading1");
            List<String> fields = Arrays.asList("field1");
            List<String> tags = Arrays.asList("tag1");
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Mon Sep 01 13:33:03 UTC 2025
    - 16K bytes
    - Viewed (0)
Back to top