Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 31 for mybytes (0.51 sec)

  1. src/bytes/buffer_test.go

    	for r := rune(0); r < NRune; r++ {
    		size := utf8.EncodeRune(b[n:], r)
    		nbytes, err := buf.WriteRune(r)
    		if err != nil {
    			t.Fatalf("WriteRune(%U) error: %s", r, err)
    		}
    		if nbytes != size {
    			t.Fatalf("WriteRune(%U) expected %d, got %d", r, size, nbytes)
    		}
    		n += size
    	}
    	b = b[0:n]
    
    	// Check the resulting bytes
    	if !Equal(buf.Bytes(), b) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 13:31:36 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  2. src/database/sql/convert.go

    			reflect.Float32, reflect.Float64:
    			*d = asString(src)
    			return nil
    		}
    	case *[]byte:
    		sv = reflect.ValueOf(src)
    		if b, ok := asBytes(nil, sv); ok {
    			*d = b
    			return nil
    		}
    	case *RawBytes:
    		sv = reflect.ValueOf(src)
    		if b, ok := asBytes(rows.rawbuf(), sv); ok {
    			*d = rows.setrawbuf(b)
    			return nil
    		}
    	case *bool:
    		bv, err := driver.Bool.ConvertValue(src)
    		if err == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  3. src/crypto/internal/mlkem768/mlkem768.go

    	// private key format.
    	dk.dk = [DecapsulationKeySize]byte(dkBytes)
    
    	dkPKE := dkBytes[:decryptionKeySize]
    	if err := parseDK(&dk.decryptionKey, dkPKE); err != nil {
    		return nil, err
    	}
    
    	ekPKE := dkBytes[decryptionKeySize : decryptionKeySize+encryptionKeySize]
    	if err := parseEK(&dk.encryptionKey, ekPKE); err != nil {
    		return nil, err
    	}
    
    	return dk, nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 28.4K bytes
    - Viewed (0)
  4. src/crypto/internal/mlkem768/mlkem768_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    	if !bytes.Equal(Ke, Kd) {
    		t.Fail()
    	}
    
    	dk1, err := GenerateKey()
    	if err != nil {
    		t.Fatal(err)
    	}
    	if bytes.Equal(dk.EncapsulationKey(), dk1.EncapsulationKey()) {
    		t.Fail()
    	}
    	if bytes.Equal(dk.Bytes(), dk1.Bytes()) {
    		t.Fail()
    	}
    	if bytes.Equal(dk.Bytes()[EncapsulationKeySize-32:], dk1.Bytes()[EncapsulationKeySize-32:]) {
    		t.Fail()
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 06 15:27:18 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  5. src/runtime/tracestack.go

    	// but one we're about to create (with ensure).
    	n := fpunwindExpand(stackBuf, stack)
    	frames := makeTraceFrames(w.gen, stackBuf[:n])
    
    	// The maximum number of bytes required to hold the encoded stack, given that
    	// it contains N frames.
    	maxBytes := 1 + (2+4*len(frames))*traceBytesPerNumber
    
    	// Estimate the size of this record. This
    	// bound is pretty loose, but avoids counting
    	// lots of varint sizes.
    	//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 14:38:56 UTC 2024
    - 11K bytes
    - Viewed (0)
  6. cmd/sftp-server.go

    	}
    
    	if userCaKeyFile != "" {
    		keyBytes, err := os.ReadFile(userCaKeyFile)
    		if err != nil {
    			logger.Fatal(fmt.Errorf("invalid arguments passed, trusted user certificate authority public key file is not accessible: %v", err), "unable to start SFTP server")
    		}
    
    		caPublicKey, _, _, _, err = ssh.ParseAuthorizedKey(keyBytes)
    		if err != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Jun 05 07:51:13 UTC 2024
    - 16K bytes
    - Viewed (0)
  7. src/runtime/string.go

    	}
    
    	*(*slice)(unsafe.Pointer(&b)) = slice{p, size, int(mem / 4)}
    	return
    }
    
    // used by cmd/cgo
    func gobytes(p *byte, n int) (b []byte) {
    	if n == 0 {
    		return make([]byte, 0)
    	}
    
    	if n < 0 || uintptr(n) > maxAlloc {
    		panic(errorString("gobytes: length out of range"))
    	}
    
    	bp := mallocgc(uintptr(n), nil, false)
    	memmove(bp, unsafe.Pointer(p), uintptr(n))
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/registry/generic/registry/store_test.go

    		// Convert both structs to maps of primitives.
    		inBytes, err := json.Marshal(in)
    		if err != nil {
    			t.Fatalf("failed to json.Marshal(in): %v", err)
    		}
    		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)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 101.8K bytes
    - Viewed (0)
  9. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheBuildOptionsIntegrationTest.groovy

            "asText.isPresent"                                        | "text presence"
            "asBytes.map { String(it).toBoolean() }.getOrElse(false)" | "bytes"
            "asBytes.isPresent"                                       | "bytes presence"
        }
    
        def "mapped file contents used as task input"() {
    
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 28K bytes
    - Viewed (0)
  10. src/fmt/print.go

    				var bytes []byte
    				if f.Kind() == reflect.Slice || f.CanAddr() {
    					bytes = f.Bytes()
    				} else {
    					// We have an array, but we cannot Bytes() a non-addressable array,
    					// so we build a slice by hand. This is a rare case but it would be nice
    					// if reflection could help a little more.
    					bytes = make([]byte, f.Len())
    					for i := range bytes {
    						bytes[i] = byte(f.Index(i).Uint())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:22:43 UTC 2024
    - 31.8K bytes
    - Viewed (0)
Back to top