Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 1,060 for doDecode (1.11 sec)

  1. src/encoding/pem/example_test.go

    yecLk/4L1W0l6jQQZnWErXZYe0PNFcmwGXy1Rep83kfBRNKRy5tvocalLlwXLdUk
    AIU+2GKjyT3iMuzZxxFxPFMCAwEAAQ==
    -----END PUBLIC KEY-----
    and some more`)
    
    	block, rest := pem.Decode(pubPEMData)
    	if block == nil || block.Type != "PUBLIC KEY" {
    		log.Fatal("failed to decode PEM block containing public key")
    	}
    
    	pub, err := x509.ParsePKIXPublicKey(block.Bytes)
    	if err != nil {
    		log.Fatal(err)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 15 03:08:55 UTC 2017
    - 1.8K bytes
    - Viewed (0)
  2. pkg/apis/apiserverinternal/types.go

    	Spec StorageVersionSpec
    
    	// API server instances report the version they can decode and the version they
    	// encode objects to when persisting objects in the backend.
    	Status StorageVersionStatus
    }
    
    // StorageVersionSpec is an empty spec.
    type StorageVersionSpec struct{}
    
    // StorageVersionStatus API server instances report the versions they can decode and the version they
    // encode objects to when persisting objects in the backend.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:07:37 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  3. src/encoding/gob/example_interface_test.go

    func interfaceDecode(dec *gob.Decoder) Pythagoras {
    	// The decode will fail unless the concrete type on the wire has been
    	// registered. We registered it in the calling function.
    	var p Pythagoras
    	err := dec.Decode(&p)
    	if err != nil {
    		log.Fatal("decode:", err)
    	}
    	return p
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 02 00:13:47 UTC 2016
    - 2.1K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/delete_test.go

    	}{
    		//  for issue: https://github.com/kubernetes/kubernetes/issues/111985
    		{
    			name:         "decode '{}' to metav1.DeleteOptions with fakeCorev1Codecs",
    			codecFactory: fakeCorev1Codec,
    			data:         []byte("{}"),
    			expectErr:    "no kind \"DeleteOptions\" is registered",
    		},
    		{
    			name:         "decode '{}' to metav1.DeleteOptions with metainternalversionscheme.Codecs",
    			codecFactory: metainternalversionscheme.Codecs,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 03 16:16:51 UTC 2023
    - 8.2K bytes
    - Viewed (0)
  5. platforms/software/security/src/main/java/org/gradle/security/internal/Fingerprint.java

            byte[] result = new byte[len];
            for (int i = 0; i < len; i++) {
                int hi = decode(hexString.charAt(2 * i)) << 4;
                int lo = decode(hexString.charAt(2 * i + 1));
                result[i] = (byte) (hi + lo);
            }
            return new Fingerprint(result);
        }
    
        private static int decode(char ch) {
            if (ch >= '0' && ch <= '9') {
                return ch - '0';
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 18 10:13:31 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  6. src/cmd/go/internal/doc/doc.go

    		Show documentation for text/template's New function.
    
    	At least in the current tree, these invocations all print the
    	documentation for json.Decoder's Decode method:
    
    	go doc json.Decoder.Decode
    	go doc json.decoder.decode
    	go doc json.decode
    	cd go/src/encoding/json; go doc decode
    
    Flags:
    	-all
    		Show all the documentation for the package.
    	-c
    		Respect case when matching symbols.
    	-cmd
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 05 17:52:29 UTC 2022
    - 4.9K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apimachinery/pkg/util/yaml/decoder.go

    	if atEOF {
    		return len(data), data, nil
    	}
    	// Request more data.
    	return 0, nil, nil
    }
    
    // decoder is a convenience interface for Decode.
    type decoder interface {
    	Decode(into interface{}) error
    }
    
    // YAMLOrJSONDecoder attempts to decode a stream of JSON documents or
    // YAML documents by sniffing for a leading { character.
    type YAMLOrJSONDecoder struct {
    	r          io.Reader
    	bufferSize int
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 19 21:24:36 UTC 2021
    - 10.2K bytes
    - Viewed (0)
  8. staging/src/k8s.io/api/apiserverinternal/v1alpha1/types.go

    	// API server instances report the version they can decode and the version they
    	// encode objects to when persisting objects in the backend.
    	Status StorageVersionStatus `json:"status" protobuf:"bytes,3,opt,name=status"`
    }
    
    // StorageVersionSpec is an empty spec.
    type StorageVersionSpec struct{}
    
    // API server instances report the versions they can decode and the version they
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:07:37 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  9. docs/debugging/inspect/utils.go

    	"log"
    )
    
    func bytesToPrivateKey(priv []byte) (*rsa.PrivateKey, error) {
    	// Try PEM
    	if block, _ := pem.Decode(priv); block != nil {
    		return x509.ParsePKCS1PrivateKey(block.Bytes)
    	}
    	// Try base 64
    	dst := make([]byte, base64.StdEncoding.DecodedLen(len(priv)))
    	if n, err := base64.StdEncoding.Decode(dst, priv); err == nil {
    		return x509.ParsePKCS1PrivateKey(dst[:n])
    	}
    	// Try Raw, return error
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Nov 02 20:36:38 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  10. staging/src/k8s.io/api/testdata/README.md

    ```
    
    To run serialization tests for a particular group/version/kind, like `apps/v1` `Deployment`:
    ```sh
    go test k8s.io/api -run /apps.v1.Deployment/
    ```
    
    Failures to decode, to round-trip identical bytes, or to decode identical objects from json/yaml/protobuf,
    will output detailed errors about the differences encountered. Detailed errors about protobuf differences
    requires `protoc` to be available on your `$PATH`.
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:52 UTC 2024
    - 5.2K bytes
    - Viewed (0)
Back to top