Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 78 for picard (0.4 sec)

  1. 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)
  2. src/io/io.go

    			return n, err
    		}
    	}
    	return
    }
    
    // Discard is a [Writer] on which all Write calls succeed
    // without doing anything.
    var Discard Writer = discard{}
    
    type discard struct{}
    
    // discard implements ReaderFrom as an optimization so Copy to
    // io.Discard can avoid doing unnecessary work.
    var _ ReaderFrom = discard{}
    
    func (discard) Write(p []byte) (int, error) {
    	return len(p), nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 17:34:10 UTC 2024
    - 21.6K bytes
    - Viewed (0)
  3. src/flag/flag_test.go

    func (f *flagVar) Set(value string) error {
    	*f = append(*f, value)
    	return nil
    }
    
    func TestUserDefined(t *testing.T) {
    	var flags FlagSet
    	flags.Init("test", ContinueOnError)
    	flags.SetOutput(io.Discard)
    	var v flagVar
    	flags.Var(&v, "v", "usage")
    	if err := flags.Parse([]string{"-v", "1", "-v", "2", "-v=3"}); err != nil {
    		t.Error(err)
    	}
    	if len(v) != 3 {
    		t.Fatal("expected 3 args; got ", len(v))
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:38:24 UTC 2024
    - 22K bytes
    - Viewed (0)
  4. 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)
  5. src/net/sendfile_test.go

    		}
    	}()
    
    	wg.Add(1)
    	go func() {
    		// Connect to the server started two goroutines up and
    		// discard any data that it writes.
    		defer wg.Done()
    		conn, err := Dial("tcp", ln.Addr().String())
    		if err != nil {
    			t.Error(err)
    			return
    		}
    		defer conn.Close()
    		io.Copy(io.Discard, conn)
    	}()
    
    	// Wait for the byte to be copied, meaning that sendfile has
    	// been called on the pipe.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 18:12:56 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. pkg/scheduler/framework/preemption/preemption.go

    // 2. A node with minimum highest priority victim is picked.
    // 3. Ties are broken by sum of priorities of all victims.
    // 4. If there are still ties, node with the minimum number of victims is picked.
    // 5. If there are still ties, node with the latest start time of all highest priority victims is picked.
    // 6. If there are still ties, the first such node is picked (sort of randomly).
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 15:52:16 UTC 2024
    - 25.1K bytes
    - Viewed (0)
  9. cmd/admin-handlers-site-replication.go

    }
    
    // SiteReplicationDevNull - everything goes to io.Discard
    // [POST] /minio/admin/v3/site-replication/devnull
    func (a adminAPIHandlers) SiteReplicationDevNull(w http.ResponseWriter, r *http.Request) {
    	ctx := r.Context()
    
    	globalSiteNetPerfRX.Connect()
    	defer globalSiteNetPerfRX.Disconnect()
    
    	connectTime := time.Now()
    	for {
    		n, err := io.CopyN(xioutil.Discard, r.Body, 128*humanize.KiByte)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  10. internal/s3select/select.go

    		return bytes.NewBuffer(make([]byte, 0, maxRecordSize))
    	},
    }
    
    var bufioWriterPool = sync.Pool{
    	New: func() interface{} {
    		// io.Discard is just used to create the writer. Actual destination
    		// writer is set later by Reset() before using it.
    		return bufio.NewWriter(xioutil.Discard)
    	},
    }
    
    // UnmarshalXML - decodes XML data.
    func (c *CompressionType) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 21K bytes
    - Viewed (0)
Back to top