Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 345 for positions (0.05 seconds)

  1. src/test/java/jcifs/internal/smb2/Smb2EchoResponseTest.java

            void testReadBytesWireFormatDifferentPositions() throws SMBProtocolDecodingException {
                byte[] buffer = new byte[1024];
    
                // Test at different positions
                int[] positions = { 0, 50, 100, 500, 800 };
    
                for (int position : positions) {
                    SMBUtil.writeInt2(4, buffer, position);
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 15.1K bytes
    - Click Count (0)
  2. src/test/java/jcifs/internal/smb2/io/Smb2FlushResponseTest.java

            void testReadBytesWireFormatDifferentStartPositions() throws SMBProtocolDecodingException {
                // Given
                byte[] buffer = new byte[20];
    
                // Test at different positions
                int[] positions = { 0, 5, 10, 15 };
    
                for (int pos : positions) {
                    SMBUtil.writeInt2(4, buffer, pos);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 10.3K bytes
    - Click Count (0)
  3. src/test/java/jcifs/internal/smb2/info/Smb2SetInfoResponseTest.java

        void testReadBytesWireFormatDifferentBufferPositions() throws SMBProtocolDecodingException {
            byte[] buffer = new byte[1024];
    
            // Test at different positions in the buffer
            int[] positions = { 0, 10, 100, 500 };
    
            for (int position : positions) {
                // Set structure size to 2 at the given position
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 10.3K bytes
    - Click Count (0)
  4. src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtTransactionResponseTest.java

        }
    
        @Test
        @DisplayName("Test reading from different buffer positions")
        void testReadFromDifferentPositions() throws Exception {
            byte[] buffer = new byte[200];
    
            // Test at various positions in the buffer
            int[] positions = { 0, 10, 50, 100, 150 };
    
            for (int pos : positions) {
                when(mockConfig.getPid()).thenReturn(1234); // Mock getPid for each new instance
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 16.3K bytes
    - Click Count (0)
  5. src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTimingAttackTest.java

                auth1.equals(auth2);
            }
        }
    
        /**
         * Test that password comparison is constant-time by comparing execution times
         * for passwords that differ at different positions.
         */
        @Test
        public void testConstantTimePasswordComparison() throws Exception {
            char[] basePassword = "supersecretpassword123456789".toCharArray();
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 11.2K bytes
    - Click Count (0)
  6. src/test/java/jcifs/internal/smb2/lock/Smb2LockResponseTest.java

            }
    
            @Test
            @DisplayName("Should read from various buffer positions")
            void testReadBytesWireFormatAtDifferentPositions() throws SMBProtocolDecodingException {
                // Given
                byte[] buffer = new byte[20];
                int[] positions = { 0, 2, 4, 8, 10, 15 };
    
                for (int pos : positions) {
                    // Clear buffer
                    buffer = new byte[20];
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 17.1K bytes
    - Click Count (0)
  7. src/test/java/jcifs/ACETest.java

            @DisplayName("Should validate constant bit positions")
            void shouldHaveCorrectBitPositions() {
                // Verify specific bit positions as documented in comments
                assertEquals(0, Integer.numberOfTrailingZeros(ACE.FILE_READ_DATA), "FILE_READ_DATA should be at bit position 0");
                assertEquals(1, Integer.numberOfTrailingZeros(ACE.FILE_WRITE_DATA), "FILE_WRITE_DATA should be at bit position 1");
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 24.4K bytes
    - Click Count (0)
  8. src/main/java/jcifs/internal/smb1/com/SmbComSeek.java

    import jcifs.internal.smb1.ServerMessageBlock;
    import jcifs.internal.util.SMBUtil;
    
    /**
     * SMB1 COM_SEEK command implementation.
     *
     * This command changes the current file position pointer for a file.
     * It allows seeking to different positions within an open file.
     *
     * @author mbechler
     */
    public class SmbComSeek extends ServerMessageBlock {
    
        /**
         * Constructs a seek command.
         *
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 3.4K bytes
    - Click Count (0)
  9. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/CrawlerClientFactory.java

            clientMap.put(Pattern.compile(regex), client);
        }
    
        /**
         * Adds a client with a regular expression pattern at a specific position.
         * @param regex The regular expression to match URLs.
         * @param client The CrawlerClient instance.
         * @param pos The position to add the client.
         */
        public void addClient(final String regex, final CrawlerClient client, final int pos) {
    Created: Sun Apr 12 03:50:13 GMT 2026
    - Last Modified: Mon Nov 24 03:59:47 GMT 2025
    - 7.3K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/collect/RegularImmutableSet.java

      // The first `size` elements are non-null.
      @VisibleForTesting final transient @Nullable Object[] elements;
      private final transient int hashCode;
      // the same values as `elements` in hashed positions (plus nulls)
      @VisibleForTesting final transient @Nullable Object[] table;
      // 'and' with an int to get a valid table index.
      private final transient int mask;
      private final transient int size;
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Dec 26 20:08:09 GMT 2025
    - 3.6K bytes
    - Click Count (0)
Back to Top