Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for PutBytes (0.23 sec)

  1. cmd/server_test.go

    		buffer.WriteString(data)
    	}
    	// String content which is used for put object range test.
    	putBytes := buffer.Bytes()
    	putBytes = putBytes[:randInt]
    	// randomize the order of bytes in the byte array and create a reader.
    	putBytes = randomizeBytes(putBytes, -1)
    	buf := bytes.NewReader(putBytes)
    	putContent := string(putBytes)
    	objectName := "test-big-file"
    	// HTTP request to upload the object.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 115.3K bytes
    - Viewed (0)
  2. src/cmd/go/internal/work/exec.go

    			continue
    		}
    		name := file[len(a.Objdir):]
    		buf.WriteString(name)
    		buf.WriteString("\n")
    		if err := b.cacheObjdirFile(a, c, name); err != nil {
    			return
    		}
    	}
    	cache.PutBytes(c, cache.Subkey(a.actionID, "srcfiles"), buf.Bytes())
    }
    
    func (b *Builder) loadCachedVet(a *Action) error {
    	c := cache.Default()
    	list, _, err := cache.GetBytes(c, cache.Subkey(a.actionID, "srcfiles"))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 14:46:37 UTC 2024
    - 105.6K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/registry/generic/registry/store_test.go

    		}
    		outBytes, err := json.Marshal(out)
    		if err != nil {
    			t.Fatalf("failed to json.Marshal(out): %v", err)
    		}
    		inMap := map[string]interface{}{}
    		if err := json.Unmarshal(inBytes, &inMap); err != nil {
    			t.Fatalf("failed to json.Unmarshal(in): %v", err)
    		}
    		outMap := map[string]interface{}{}
    		if err := json.Unmarshal(outBytes, &outMap); err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 101.8K bytes
    - Viewed (0)
Back to top