Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 114 for nicard (0.12 sec)

  1. src/io/ioutil/ioutil.go

    func NopCloser(r io.Reader) io.ReadCloser {
    	return io.NopCloser(r)
    }
    
    // Discard is an io.Writer on which all Write calls succeed
    // without doing anything.
    //
    // Deprecated: As of Go 1.16, this value is simply [io.Discard].
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  2. src/image/gif/writer_test.go

    		Delay: make([]int, 1),
    	}
    	if err := EncodeAll(io.Discard, g0); err == nil {
    		t.Error("expected error from mismatched delay and image slice lengths")
    	}
    
    	g1 := &GIF{
    		Image:    images,
    		Delay:    make([]int, len(images)),
    		Disposal: make([]byte, 1),
    	}
    	for i := range g1.Disposal {
    		g1.Disposal[i] = DisposalNone
    	}
    	if err := EncodeAll(io.Discard, g1); err == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 19K bytes
    - Viewed (0)
  3. subprojects/core-api/src/main/java/org/gradle/api/provider/Property.java

        /**
         * Sets the value of the property to the given value, replacing whatever value the property already had.
         *
         * <p>
         * This method can also be used to discard the value of the property, by passing it {@code null}. When the
         * value is discarded (or has never been set in the first place), the convention (default value) for this
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 16:06:55 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  4. src/net/http/httputil/reverseproxy_test.go

    	backend.Config.ErrorLog = log.New(io.Discard, "", 0)
    
    	backendURL, err := url.Parse(backend.URL)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	proxyHandler := NewSingleHostReverseProxy(backendURL)
    
    	// Discards errors of the form:
    	// http: proxy error: read tcp 127.0.0.1:44643: use of closed network connection
    	proxyHandler.ErrorLog = log.New(io.Discard, "", 0)
    
    	frontend := httptest.NewServer(proxyHandler)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 54.6K bytes
    - Viewed (0)
  5. src/cmd/distpack/pack.go

    	binArch := base.Clone()
    	binArch.Filter(func(name string) bool {
    		// Discard bin/ for now, will add back later.
    		if strings.HasPrefix(name, "bin/") {
    			return false
    		}
    		// Discard most of pkg.
    		if strings.HasPrefix(name, "pkg/") {
    			// Keep pkg/include.
    			if strings.HasPrefix(name, "pkg/include/") {
    				return true
    			}
    			// Discard other pkg except pkg/tool.
    			if !strings.HasPrefix(name, "pkg/tool/") {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  6. platforms/core-configuration/dependency-management-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/dm/ResolveArtifactNodeCodec.kt

    
    object ResolveArtifactNodeCodec : Codec<DefaultResolvableArtifact.ResolveAction> {
        override suspend fun WriteContext.encode(value: DefaultResolvableArtifact.ResolveAction) {
            // TODO - should just discard this action. The artifact location will already have been resolved during writing to the cache
            // and so this node does not do anything useful
            write(value.artifact)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 04 18:56:44 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  7. platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/WorkNodeActionCodec.kt

        override suspend fun WriteContext.encode(value: WorkNodeAction) {
            logNotImplemented(value.javaClass)
        }
    
        override suspend fun ReadContext.decode(): WorkNodeAction {
            // TODO - should discard from graph instead
            return object : WorkNodeAction {
                override fun run(context: NodeExecutionContext) {
                    // Ignore
                }
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 23:09:56 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  8. platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/ProviderCodecs.kt

                value.isMissing -> {
                    // Can serialize a fixed value and discard the provider
                    // TODO - should preserve information about the source, for diagnostics at execution time
                    writeByte(1)
                }
    
                value.hasFixedValue() && sideEffect == null -> {
                    // Can serialize a fixed value and discard the provider
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:30 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  9. internal/ioutil/ioutil_test.go

    	}
    }
    
    func TestCloseOnWriter(t *testing.T) {
    	writer := WriteOnClose(io.Discard)
    	if writer.HasWritten() {
    		t.Error("WriteOnCloser must not be marked as HasWritten")
    	}
    	writer.Write(nil)
    	if !writer.HasWritten() {
    		t.Error("WriteOnCloser must be marked as HasWritten")
    	}
    
    	writer = WriteOnClose(io.Discard)
    	writer.Close()
    	if !writer.HasWritten() {
    		t.Error("WriteOnCloser must be marked as HasWritten")
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 22 23:07:14 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  10. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/moduleconverter/DefaultRootComponentMetadataBuilder.java

        }
    
        @Override
        public MutationValidator getValidator() {
            return holder;
        }
    
        @Override
        public void discardAll() {
            holder.discard();
        }
    
        private static class MetadataHolder implements MutationValidator {
            @Nullable
            private SoftReference<LocalComponentGraphResolveState> reference;
            @Nullable
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 14:19:34 UTC 2024
    - 11.6K bytes
    - Viewed (0)
Back to top