Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 1,918 for ints (0.02 sec)

  1. src/test/java/jcifs/internal/smb2/nego/PreauthIntegrityNegotiateContextTest.java

            void testEncodeVariousHashAlgoCounts(int algoCount) {
                int[] hashAlgos = new int[algoCount];
                for (int i = 0; i < algoCount; i++) {
                    hashAlgos[i] = i + 1;
                }
                byte[] salt = { 0x01, 0x02 };
                PreauthIntegrityNegotiateContext context = new PreauthIntegrityNegotiateContext(mockConfig, hashAlgos, salt);
    
                int bytesWritten = context.encode(buffer, 0);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 34K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/trans/TransPeekNamedPipeResponseTest.java

            byte[] dst = new byte[100];
            int dstIndex = 50;
    
            // Act
            int result = response.writeSetupWireFormat(dst, dstIndex);
    
            // Assert
            assertEquals(0, result);
        }
    
        @Test
        @DisplayName("writeParametersWireFormat should return 0")
        void testWriteParametersWireFormat() {
            // Arrange
            byte[] dst = new byte[100];
            int dstIndex = 0;
    
            // Act
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/netbios/SessionServicePacketTest.java

        private static class TestSessionServicePacket extends SessionServicePacket {
            int trailerLength = 10; // Default trailer length for testing
            int trailerBytesRead = 0;
    
            @Override
            int writeTrailerWireFormat(byte[] dst, int dstIndex) {
                // Simple mock implementation
                for (int i = 0; i < trailerLength && dstIndex + i < dst.length; i++) {
                    dst[dstIndex + i] = (byte) i;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.5K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/Smb2EchoResponseTest.java

            }
    
            @ParameterizedTest
            @ValueSource(ints = { 0, 1, 2, 3, 5, 6, 100, 65535 })
            @DisplayName("Should throw exception for various invalid structure sizes")
            void testReadBytesWireFormatVariousInvalidSizes(int structureSize) {
                byte[] buffer = new byte[1024];
                int bufferIndex = 50;
    
                SMBUtil.writeInt2(structureSize, buffer, bufferIndex);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/info/Smb2SetInfoRequestTest.java

            // Test size calculation
            int size = request.size();
            int expectedRawSize = Smb2Constants.SMB2_HEADER_LENGTH + 32 + 64;
            int expectedSize = (expectedRawSize + 7) & ~7;
            assertEquals(expectedSize, size);
    
            // Test wire format writing
            byte[] buffer = new byte[512];
            int bytesWritten = request.writeBytesWireFormat(buffer, 64);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.9K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/Smb2TransformHeaderTest.java

        }
    
        // Duplicate testFlags method removed - keeping the first one
    
        @ParameterizedTest
        @ValueSource(ints = { 0, 1, 64, 1024, 4096, 65536 })
        @DisplayName("Should handle various message sizes")
        void testVariousMessageSizes(int messageSize) {
            // When
            transformHeader.setOriginalMessageSize(messageSize);
    
            // Then
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/fscc/FileSystemInformationTest.java

            @ParameterizedTest
            @ValueSource(ints = { 24, 32, 100, 1000, 10000 })
            @DisplayName("Should handle various buffer sizes correctly")
            void testVariousBufferSizes(int bufferSize) throws SMBProtocolDecodingException {
                byte[] buffer = new byte[bufferSize];
                FileFsSizeInformation info = new FileFsSizeInformation();
    
                int decoded = info.decode(buffer, 0, Math.min(bufferSize, 24));
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb1/util/HexdumpTest.java

            // High bytes should be dots
            assertTrue(output.contains("..."));
        }
    
        @ParameterizedTest
        @ValueSource(ints = { 1, 15, 16, 17, 31, 32, 33, 64, 128 })
        @DisplayName("Should handle various data sizes in hexdump")
        void testHexdumpVariousSizes(int size) {
            ByteArrayOutputStream baos = new ByteArrayOutputStream();
            PrintStream ps = new PrintStream(baos);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/ImmutableSet.java

      }
    
      // We use power-of-2 tables, and this is the highest int that's a power of 2
      static final int MAX_TABLE_SIZE = Ints.MAX_POWER_OF_TWO;
    
      // Represents how tightly we can pack things, as a maximum.
      private static final double DESIRED_LOAD_FACTOR = 0.7;
    
      // If the set has this many elements, it will "max out" the table size
      private static final int CUTOFF = (int) (MAX_TABLE_SIZE * DESIRED_LOAD_FACTOR);
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 35.2K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb1/net/NetServerEnum2Test.java

        void testWriteParametersWireFormatNetServerEnum2() throws Exception {
            String domain = "TESTDOMAIN";
            int serverTypes = NetServerEnum2.SV_TYPE_ALL;
            netServerEnum2 = new NetServerEnum2(realConfig, domain, serverTypes);
    
            byte[] dst = new byte[1024];
            int dstIndex = 0;
    
            int bytesWritten = netServerEnum2.writeParametersWireFormat(dst, dstIndex);
    
            // Verify bytes written
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.7K bytes
    - Viewed (0)
Back to top