Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 248 for positions (0.28 sec)

  1. guava/src/com/google/common/collect/ImmutableSet.java

            }
          }
          return false;
        }
    
        /**
         * If more than this many consecutive positions are filled in a table of the specified size,
         * report probable hash flooding. ({@link #hashFloodingDetected} may also report hash flooding
         * if fewer consecutive positions are filled; see that method for details.)
         */
        static int maxRunBeforeFallback(int tableSize) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 35.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/io/Smb2ReadRequestTest.java

            }
    
            @Test
            @DisplayName("Should write at different buffer positions")
            void testWriteAtDifferentPositions() {
                request.setReadLength(2048);
                request.setOffset(4096L);
    
                byte[] buffer = new byte[512];
    
                // Test at position 0
                int bytesWritten = request.writeBytesWireFormat(buffer, 0);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/netbios/NameTest.java

            assertEquals('E', dst[2]); // (0x54 & 0x0F) + 0x41 = 0x45 = 'E'
    
            // Check padding (positions 8-30 should be 'CA' pairs for spaces)
            for (int i = 8; i < 31; i += 2) {
                assertEquals('C', dst[i + 1]);
                assertEquals('A', dst[i + 2]);
            }
    
            // Check type encoding at position 31-32
            assertEquals('C', dst[31]); // (0x20 >> 4) + 0x41 = 'C'
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/lock/Smb2LockRequestTest.java

            @DisplayName("Should write at different buffer positions")
            void testWriteAtDifferentPositions() {
                byte[] buffer = new byte[512];
    
                // Test at position 0
                int bytesWritten = request.writeBytesWireFormat(buffer, 0);
                assertEquals(48, bytesWritten);
                assertEquals(48, SMBUtil.readInt2(buffer, 0));
    
                // Test at position 100
                Arrays.fill(buffer, (byte) 0);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 25.3K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkCopyTest.java

                // Then
                assertEquals(HEADER_SIZE + CHUNK_SIZE, bytesWritten);
    
                // Verify source key at correct position
                for (int i = 0; i < SOURCE_KEY_SIZE; i++) {
                    assertEquals(sourceKey[i], largeBuffer[position + i]);
                }
    
                // Verify chunk count at correct position
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 23.1K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/nego/NegotiateContextResponseTest.java

                assertEquals(6, smallEncodedSize); // actual: 2 bytes count + 2*2 bytes for ciphers
                assertEquals(6, largeEncodedSize);
    
                // Verify data at different positions
                assertArrayEquals(Arrays.copyOfRange(smallBuffer, 0, smallEncodedSize),
                        Arrays.copyOfRange(largeBuffer, 500, 500 + largeEncodedSize));
            }
        }
    
        @Nested
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectRequestTest.java

        void testStructureSizeImmutability() throws Exception {
            // Given
            byte[] buffer = new byte[2048];
    
            // When - encode at multiple positions
            for (int i = 0; i < 5; i++) {
                Smb2TreeConnectRequest req = new Smb2TreeConnectRequest(mockConfig, TEST_PATH);
                req.encode(buffer, i * 200);
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  8. guava/src/com/google/common/net/InetAddresses.java

                    + " bytes: %s",
                numBytes, address);
          }
        }
    
        // Copy the bytes into the least significant positions.
        System.arraycopy(addressBytes, srcPos, targetCopyArray, destPos, copyLength);
    
        try {
          return InetAddress.getByAddress(targetCopyArray);
        } catch (UnknownHostException impossible) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Feb 19 21:24:11 UTC 2025
    - 47.4K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/ImmutableSortedSet.java

       * If {@code k} is the size of the returned {@code ImmutableSortedSet}, then the sorted unique
       * elements are in the first {@code k} positions of {@code contents}, and {@code contents[i] ==
       * null} for {@code k <= i < n}.
       *
       * <p>This method takes ownership of {@code contents}; do not modify {@code contents} after this
       * returns.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 36.8K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/base/Preconditions.java

       * Ensures that {@code start} and {@code end} specify valid <i>positions</i> in an array, list or
       * string of size {@code size}, and are in order. A position index may range from zero to {@code
       * size}, inclusive.
       *
       * @param start a user-supplied index identifying a starting position in an array, list or string
       * @param end a user-supplied index identifying an ending position in an array, list or string
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 10 22:11:00 UTC 2025
    - 53K bytes
    - Viewed (0)
Back to top