Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 229 for Writer (0.16 sec)

  1. src/bufio/bufio_test.go

    			t.Errorf("r.WriteTo(errorWriterToTests[%d]) = _, %v, want _,%v", i, err, rw.expected)
    		}
    	}
    }
    
    func TestWriterReadFrom(t *testing.T) {
    	ws := []func(io.Writer) io.Writer{
    		func(w io.Writer) io.Writer { return onlyWriter{w} },
    		func(w io.Writer) io.Writer { return w },
    	}
    
    	rs := []func(io.Reader) io.Reader{
    		iotest.DataErrReader,
    		func(r io.Reader) io.Reader { return r },
    	}
    
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Feb 10 18:56:01 GMT 2023
    - 51.5K bytes
    - Viewed (0)
  2. src/archive/zip/example_test.go

    	// Override the default Deflate compressor with a higher compression level.
    
    	// Create a buffer to write our archive to.
    	buf := new(bytes.Buffer)
    
    	// Create a new zip archive.
    	w := zip.NewWriter(buf)
    
    	// Register a custom Deflate compressor.
    	w.RegisterCompressor(zip.Deflate, func(out io.Writer) (io.WriteCloser, error) {
    		return flate.NewWriter(out, flate.BestCompression)
    	})
    
    	// Proceed to add files to w.
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Jan 27 00:22:03 GMT 2016
    - 2K bytes
    - Viewed (0)
  3. cmd/bucket-stats_gen.go

    func (z *BucketReplicationStat) EncodeMsg(en *msgp.Writer) (err error) {
    	// map header, size 14
    	// write "ReplicatedSize"
    	err = en.Append(0x8e, 0xae, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x53, 0x69, 0x7a, 0x65)
    	if err != nil {
    		return
    	}
    	err = en.WriteInt64(z.ReplicatedSize)
    	if err != nil {
    		err = msgp.WrapError(err, "ReplicatedSize")
    		return
    	}
    	// write "ReplicaSize"
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Feb 06 06:00:45 GMT 2024
    - 57.5K bytes
    - Viewed (0)
  4. cmd/lock-rest-server-common_test.go

    	defer os.RemoveAll(testPath)
    
    	lockRequesterInfo1 := lockRequesterInfo{
    		Owner:           "owner",
    		Writer:          true,
    		UID:             "0123-4567",
    		Timestamp:       UTCNow(),
    		TimeLastRefresh: UTCNow(),
    	}
    	lockRequesterInfo2 := lockRequesterInfo{
    		Owner:           "owner",
    		Writer:          true,
    		UID:             "89ab-cdef",
    		Timestamp:       UTCNow(),
    		TimeLastRefresh: UTCNow(),
    	}
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Mar 23 17:26:21 GMT 2023
    - 3.1K bytes
    - Viewed (0)
  5. internal/lsync/lrwmutex_test.go

    	lrwm := NewLRWMutex()
    
    	// fmt.Println("Getting initial write lock")
    	if !lrwm.GetLock(ctx, "", "", time.Second) {
    		panic("Failed to acquire initial write lock")
    	}
    
    	go func() {
    		time.Sleep(2 * time.Second)
    		lrwm.Unlock()
    		// fmt.Println("Initial write lock released, waiting...")
    	}()
    
    	// fmt.Println("Trying to acquire 2nd write lock, waiting...")
    	locked = lrwm.GetLock(ctx, "", "", duration)
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sun Mar 05 04:57:35 GMT 2023
    - 7.9K bytes
    - Viewed (0)
  6. istioctl/pkg/writer/ztunnel/configdump/policies.go

    	"cmp"
    	"encoding/json"
    	"fmt"
    	"strings"
    
    	"sigs.k8s.io/yaml"
    
    	"istio.io/istio/pkg/maps"
    	"istio.io/istio/pkg/slices"
    )
    
    // PolicyFilter is used to pass filter information into service based config writer print functions
    type PolicyFilter struct {
    	Namespace string
    }
    
    // Verify returns true if the passed workload matches the filter fields
    func (wf *PolicyFilter) Verify(pol *ZtunnelPolicy) bool {
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Tue Apr 23 21:30:30 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  7. cmd/bucket-handlers_test.go

    	// if object upload fails stop the test.
    	if err != nil {
    		t.Fatalf("Error uploading object: <ERROR> %v", err)
    	}
    
    	// initialize httptest Recorder, this records any mutations to response writer inside the handler.
    	rec := httptest.NewRecorder()
    	// construct HTTP request for DELETE bucket.
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 39.5K bytes
    - Viewed (2)
  8. internal/dsync/drwmutex_test.go

    		runtime.GOMAXPROCS(gomaxprocs)
    		// Number of active readers + 10000 * number of active writers.
    		var activity int32
    		cdone := make(chan bool)
    		go writer(resource, numIterations, &activity, cdone)
    		var i int
    		for i = 0; i < numReaders/2; i++ {
    			go reader(resource, numIterations, &activity, cdone)
    		}
    		go writer(resource, numIterations, &activity, cdone)
    		for ; i < numReaders; i++ {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sat Dec 24 03:49:07 GMT 2022
    - 9.7K bytes
    - Viewed (0)
  9. cmd/erasure-server-pool-rebalance_gen.go

    func (z rebalanceInfo) EncodeMsg(en *msgp.Writer) (err error) {
    	// map header, size 3
    	// write "startTs"
    	err = en.Append(0x83, 0xa7, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x73)
    	if err != nil {
    		return
    	}
    	err = en.WriteTime(z.StartTime)
    	if err != nil {
    		err = msgp.WrapError(err, "StartTime")
    		return
    	}
    	// write "stopTs"
    	err = en.Append(0xa6, 0x73, 0x74, 0x6f, 0x70, 0x54, 0x73)
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Mar 21 17:21:35 GMT 2024
    - 26.8K bytes
    - Viewed (0)
  10. istioctl/pkg/proxyconfig/proxyconfig.go

    	"istio.io/istio/istioctl/pkg/completion"
    	"istio.io/istio/istioctl/pkg/kubeinject"
    	istioctlutil "istio.io/istio/istioctl/pkg/util"
    	sdscompare "istio.io/istio/istioctl/pkg/writer/compare/sds"
    	"istio.io/istio/istioctl/pkg/writer/envoy/clusters"
    	"istio.io/istio/istioctl/pkg/writer/envoy/configdump"
    	"istio.io/istio/operator/pkg/util"
    	"istio.io/istio/pilot/pkg/model"
    	"istio.io/istio/pkg/config/host"
    	"istio.io/istio/pkg/kube"
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Tue Apr 16 03:28:36 GMT 2024
    - 48K bytes
    - Viewed (0)
Back to top