Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 737 for gbyte (0.25 sec)

  1. cmd/streaming-signature-v4.go

    // For example,
    //
    //	"10000;chunk-signature=..." => "10000", "chunk-signature=..."
    func parseS3ChunkExtension(buf []byte) ([]byte, []byte) {
    	buf = trimTrailingWhitespace(buf)
    	semi := bytes.Index(buf, []byte(s3ChunkSignatureStr))
    	// Chunk signature not found, return the whole buffer.
    	if semi == -1 {
    		return buf, nil
    	}
    	return buf[:semi], parseChunkSignature(buf[semi:])
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 16 23:13:47 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  2. internal/grid/benchmark_test.go

    		errFatal(remote.RegisterStreamingHandler(handlerTest, StreamHandler{
    			// Send 10x response.
    			Handle: func(ctx context.Context, payload []byte, _ <-chan []byte, out chan<- []byte) *RemoteErr {
    				for i := 0; i < responses; i++ {
    					toSend := GetByteBuffer()[:0]
    					toSend = append(toSend, byte(i))
    					toSend = append(toSend, payload...)
    					select {
    					case <-ctx.Done():
    						return nil
    					case out <- toSend:
    					}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  3. cni/pkg/install/kubeconfig_test.go

    			if c.skipTLSVerify {
    				goldenFilepath = "testdata/kubeconfig-skip-tls"
    			}
    
    			testutils.CompareContent(t, []byte(result.Full), goldenFilepath)
    		})
    	}
    }
    
    func TestReplaceInvalidKubeconfigFile(t *testing.T) {
    	tmp := t.TempDir()
    	os.WriteFile(filepath.Join(tmp, "token"), []byte(saToken), 0o644)
    	tempDir := t.TempDir()
    
    	cfg := &config.InstallConfig{
    		MountedCNINetDir:      tempDir,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 17 21:52:29 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  4. src/os/user/cgo_lookup_unix.go

    	return lookupUnixUid(syscall.Getuid())
    }
    
    func lookupUser(username string) (*User, error) {
    	var pwd _C_struct_passwd
    	var found bool
    	nameC := make([]byte, len(username)+1)
    	copy(nameC, username)
    
    	err := retryWithBuffer(userBuffer, func(buf []byte) syscall.Errno {
    		var errno syscall.Errno
    		pwd, found, errno = _C_getpwnam_r((*_C_char)(unsafe.Pointer(&nameC[0])),
    			(*_C_char)(unsafe.Pointer(&buf[0])), _C_size_t(len(buf)))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:08:14 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  5. src/internal/trace/testdata/testprog/stress.go

    			}
    		}
    	}()
    
    	runtime.GC()
    	// Trigger GC from malloc.
    	n := 512
    	for i := 0; i < n; i++ {
    		_ = make([]byte, 1<<20)
    	}
    
    	// Create a bunch of busy goroutines to load all Ps.
    	for p := 0; p < 10; p++ {
    		wg.Add(1)
    		go func() {
    			// Do something useful.
    			tmp := make([]byte, 1<<16)
    			for i := range tmp {
    				tmp[i]++
    			}
    			_ = tmp
    			<-done
    			wg.Done()
    		}()
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  6. cmd/post-policy_test.go

    	retStr := "{"
    	retStr = retStr + expirationStr + ","
    	retStr += conditionStr
    	retStr += "}"
    
    	return []byte(retStr)
    }
    
    // newPostPolicyBytesV4 - creates a bare bones postpolicy string with key and bucket matches.
    func newPostPolicyBytesV4(credential, bucketName, objectKey string, expiration time.Time) []byte {
    	t := UTCNow()
    	// Add the expiration date.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 22 23:07:14 UTC 2024
    - 30.2K bytes
    - Viewed (0)
  7. cmd/object-api-datatypes_gen.go

    	"github.com/tinylib/msgp/msgp"
    )
    
    // MarshalMsg implements msgp.Marshaler
    func (z BackendType) MarshalMsg(b []byte) (o []byte, err error) {
    	o = msgp.Require(b, z.Msgsize())
    	o = msgp.AppendInt(o, int(z))
    	return
    }
    
    // UnmarshalMsg implements msgp.Unmarshaler
    func (z *BackendType) UnmarshalMsg(bts []byte) (o []byte, err error) {
    	{
    		var zb0001 int
    		zb0001, bts, err = msgp.ReadIntBytes(bts)
    		if err != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 70.1K bytes
    - Viewed (0)
  8. src/internal/trace/raw/writer.go

    //
    // It may not produce a byte-for-byte compatible trace from what is
    // produced by the runtime, because it may be missing extra padding
    // in the LEB128 encoding that the runtime adds but isn't necessary
    // when you know the data up-front.
    type Writer struct {
    	w     io.Writer
    	buf   []byte
    	v     version.Version
    	specs []event.Spec
    }
    
    // NewWriter creates a new byte format writer.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  9. staging/src/k8s.io/api/core/v1/generated.pb.go

    func (*AWSElasticBlockStoreVolumeSource) Descriptor() ([]byte, []int) {
    	return fileDescriptor_6c07b07c062484ab, []int{0}
    }
    func (m *AWSElasticBlockStoreVolumeSource) XXX_Unmarshal(b []byte) error {
    	return m.Unmarshal(b)
    }
    func (m *AWSElasticBlockStoreVolumeSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    	b = b[:cap(b)]
    	n, err := m.MarshalToSizedBuffer(b)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 1.8M bytes
    - Viewed (0)
  10. src/reflect/all_test.go

    	{V(MyBytes([]byte(nil))), V((*[0]byte)(nil))},
    	{V(MyBytes([]byte{})), V(new([0]byte))},
    	{V(MyBytes([]byte{9})), V(&[1]byte{9})},
    	{V([]byte(nil)), V(MyBytesArrayPtr0(nil))},
    	{V([]byte{}), V(MyBytesArrayPtr0(new([0]byte)))},
    	{V([]byte{1, 2, 3, 4}), V(MyBytesArrayPtr(&[4]byte{1, 2, 3, 4}))},
    	{V(MyBytes([]byte{})), V(MyBytesArrayPtr0(new([0]byte)))},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
Back to top