Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 121 - 130 of 340 for remains (0.42 seconds)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/publicsuffix/BasePublicSuffixList.kt

          readTheListUninterruptibly()
        } else {
          try {
            readCompleteLatch.await()
          } catch (_: InterruptedException) {
            Thread.currentThread().interrupt() // Retain interrupted status.
          }
        }
    
        if (!::bytes.isInitialized) {
          // May have failed with an IOException
          throw IllegalStateException("Unable to load $path resource.").apply {
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Mon Jul 28 07:33:49 GMT 2025
    - 3.6K bytes
    - Click Count (0)
  2. src/test/java/jcifs/smb1/dcerpc/ndr/NdrHyperTest.java

     * </ul>
     *
     * The buffer is created with enough capacity for a 64‑bit value.
     */
    @ExtendWith(MockitoExtension.class)
    public class NdrHyperTest {
    
        /**
         * Tests a simple round‑trip encode → decode retains the original value.
         */
        @Test
        @DisplayName("Basic round‑trip for a fixed value")
        public void testEncodeRoundTrip() throws NdrException {
            final long original = 0x1122334455667788L;
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 4.3K bytes
    - Click Count (0)
  3. src/bufio/bufio.go

    		return
    	}
    
    	b.lastByte = -1
    	b.lastRuneSize = -1
    
    	remain := n
    	for {
    		skip := b.Buffered()
    		if skip == 0 {
    			b.fill()
    			skip = b.Buffered()
    		}
    		if skip > remain {
    			skip = remain
    		}
    		b.r += skip
    		remain -= skip
    		if remain == 0 {
    			return n, nil
    		}
    		if b.err != nil {
    			return n - remain, b.readErr()
    		}
    	}
    }
    
    // Read reads data into p.
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Wed Sep 03 14:04:47 GMT 2025
    - 22K bytes
    - Click Count (0)
  4. src/test/java/jcifs/internal/smb2/session/Smb2LogoffResponseTest.java

                int written = resp.writeBytesWireFormat(buffer, index);
    
                // Assert
                assertEquals(0, written, "Should report 0 bytes written");
                assertArrayEquals(original, buffer, "Buffer must remain unchanged");
            }
    
            @Test
            @DisplayName("Handles null destination without throwing and returns 0")
            void allowsNullBuffer() {
                // Arrange
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 4.7K bytes
    - Click Count (0)
  5. src/test/java/jcifs/internal/smb1/net/NetShareEnumResponseTest.java

            int numShares = 3;
            String[] shareNames = { "SHARE1", "ADMIN$", "IPC$" };
            int[] shareTypes = { 0, 0x8000, 3 }; // Disk, Hidden flag (stored in 2 bytes), IPC
            String[] remarks = { "First share", "Admin share", "IPC share" };
    
            // Set converter and number of entries
            setConverter(response, 0);
            setNumEntries(response, numShares);
    
            // Calculate total buffer size
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 20.2K bytes
    - Click Count (0)
  6. internal/bucket/object/lock/lock.go

    type Retention struct {
    	Mode        RetMode
    	Validity    time.Duration
    	LockEnabled bool
    }
    
    // Retain - check whether given date is retainable by validity time.
    func (r Retention) Retain(created time.Time) bool {
    	t, err := UTCNowNTP()
    	if err != nil {
    		lockLogIf(context.Background(), err)
    		// Retain
    		return true
    	}
    	return created.Add(r.Validity).After(t)
    }
    
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 17.9K bytes
    - Click Count (0)
  7. cmd/handler-utils_test.go

    		}
    	}
    }
    
    // Test getResource()
    func TestGetResource(t *testing.T) {
    	testCases := []struct {
    		p                string
    		host             string
    		domains          []string
    		expectedResource string
    	}{
    		{"/a/b/c", "test.mydomain.com", []string{"mydomain.com"}, "/test/a/b/c"},
    		{"/a/b/c", "[2001:0db8:85a3:0000:0000:8a2e:0370:7334]:17000", []string{"mydomain.com"}, "/a/b/c"},
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Wed Apr 09 14:28:39 GMT 2025
    - 6.1K bytes
    - Click Count (0)
  8. src/main/java/jcifs/smb/SmbFileOutputStream.java

                        len -= cnt;
                        off += cnt;
                    } else {
                        if (log.isTraceEnabled()) {
                            log.trace(String.format("Wrote at %d remain %d off %d len %d", this.fp, len - w, off, w));
                        }
                        this.req.setParam(fh.getFid(), this.fp, len - w, b, off, w);
                        th.send(this.req, this.rsp);
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 12.8K bytes
    - Click Count (0)
  9. src/test/java/jcifs/smb1/smb1/NtTransQuerySecurityDescTest.java

                final int idx = i;
                assertEquals(expected[i], dst[offset + i], () -> "byte index " + idx);
            }
            // The region before offset and after the payload must remain untouched.
            for (int i = 0; i < offset; i++) {
                final int idx = i;
                assertEquals(0, dst[i], () -> "pre-offset byte " + idx + " modified");
            }
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 4.6K bytes
    - Click Count (0)
  10. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/artifact/MavenArtifactProperties.java

         * about Java classpath or anything alike. How artifact is being consumed depends heavily on the consumer project.
         * Resolver is and will remain agnostic of consumer project use cases.
         */
        public static final String CONSTITUTES_BUILD_PATH = "constitutesBuildPath";
    
        /**
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 2.6K bytes
    - Click Count (0)
Back to Top