Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 3,065 for Decoding (0.17 sec)

  1. platforms/core-configuration/graph-serialization/src/main/kotlin/org/gradle/internal/serialize/graph/codecs/BindingsBackedCodec.kt

        val tag: Int,
        val encoding: EncodingProducer,
        val decoding: Decoding
    ) {
        fun encodingForType(type: Class<*>) = encoding.encodingForType(type)
    }
    
    
    /**
     * An object that can determine, for a given type, whether it can encode instances of that type, and which specific encoding to use.
     */
    interface EncodingProducer {
    
        /**
         * Returns the encoding to use for that type, or null, if not supported.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 04 18:56:44 UTC 2024
    - 6K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/util/managedfields/fieldmanager_test.go

    			}
    		}
    	}`), &newObj.Object); err != nil {
    		t.Fatalf("error decoding YAML: %v", err)
    	}
    
    	if err := yaml.Unmarshal([]byte(`{
    		"apiVersion": "apps/v1",
    		"kind": "Deployment",
    		"metadata": {
    			"name": "deployment",
    		},
    		"spec": {
    			"replicas": 101,
    		}
    	}`), &appliedObj.Object); err != nil {
    		t.Fatalf("error decoding YAML: %v", err)
    	}
    
    	// Agent A applies initial configuration
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 16 20:03:48 UTC 2023
    - 32.5K bytes
    - Viewed (0)
  3. pkg/controller/garbagecollector/metaonly/types.go

    limitations under the License.
    */
    
    package metaonly
    
    import (
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    )
    
    // MetadataOnlyObject allows decoding only the apiVersion, kind, and metadata fields of
    // JSON data.
    // TODO: enable meta-only decoding for protobuf.
    //
    // +k8s:deepcopy-gen=true
    // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
    type MetadataOnlyObject struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 18 07:28:47 UTC 2017
    - 1.5K bytes
    - Viewed (0)
  4. pkg/kubelet/kubeletconfig/util/codec/codec.go

    		if lenientErr != nil {
    			// Lenient decoding failed with the current version, return the
    			// original strict error.
    			return nil, fmt.Errorf("failed lenient decoding: %v", err)
    		}
    		// Continue with the v1beta1 object that was decoded leniently, but emit a warning.
    		klog.InfoS("Using lenient decoding as strict decoding failed", "err", err)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 03 21:48:29 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  5. src/encoding/gob/dec_helpers.go

    	slice, ok := v.Interface().([]bool)
    	if !ok {
    		// It is kind bool but not type bool. TODO: We can handle this unsafely.
    		return false
    	}
    	for i := 0; i < length; i++ {
    		if state.b.Len() == 0 {
    			errorf("decoding bool array or slice: length exceeds input size (%d elements)", length)
    		}
    		if i >= len(slice) {
    			// This is a slice that we only partially allocated.
    			growSlice(v, &slice, length)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 24 19:28:46 UTC 2023
    - 15.4K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/audit/policy/reader.go

    	strictDecoder := serializer.NewCodecFactory(audit.Scheme, serializer.EnableStrict).UniversalDecoder()
    
    	// Try strict decoding first.
    	_, gvk, err := strictDecoder.Decode(policyDef, nil, policy)
    	if err != nil {
    		if !runtime.IsStrictDecodingError(err) {
    			return nil, fmt.Errorf("failed decoding: %w", err)
    		}
    		var (
    			lenientDecoder = audit.Codecs.UniversalDecoder(apiGroupVersions...)
    			lenientErr     error
    		)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 03 04:09:40 UTC 2022
    - 2.9K bytes
    - Viewed (0)
  7. pkg/scheduler/apis/config/scheme/scheme_test.go

                Utilization: 1
    `),
    			wantErr: `strict decoding error: decoding .profiles[0].pluginConfig[0]: strict decoding error: decoding args for plugin NodeResourcesFit: strict decoding error: unknown field "scoringStrategy.requestedToCapacityRatio.shape[0].Score", unknown field "scoringStrategy.requestedToCapacityRatio.shape[0].Utilization"`,
    		},
    		{
    			name: "v1 NodeResourcesFitArgs resources encoding is strict",
    			data: []byte(`
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 13 07:42:19 UTC 2023
    - 22.2K bytes
    - Viewed (0)
  8. platforms/core-configuration/stdlib-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/stdlib/ProxyCodec.kt

     * limitations under the License.
     */
    
    package org.gradle.internal.serialize.codecs.stdlib
    
    import org.gradle.internal.serialize.graph.codecs.Decoding
    import org.gradle.internal.serialize.graph.codecs.Encoding
    import org.gradle.internal.serialize.graph.codecs.EncodingProducer
    import org.gradle.internal.serialize.graph.ReadContext
    import org.gradle.internal.serialize.graph.WriteContext
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 04 18:56:44 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  9. src/encoding/gob/error.go

    package gob
    
    import "fmt"
    
    // Errors in decoding and encoding are handled using panic and recover.
    // Panics caused by user error (that is, everything except run-time panics
    // such as "index out of bounds" errors) do not leave the file that caused
    // them, but are instead turned into plain error returns. Encoding and
    // decoding functions and methods that do not return an error either use
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 30 23:03:07 UTC 2022
    - 1.3K bytes
    - Viewed (0)
  10. platforms/core-configuration/stdlib-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/stdlib/EnumCodec.kt

    import org.gradle.internal.serialize.graph.codecs.Decoding
    import org.gradle.internal.serialize.graph.codecs.Encoding
    import org.gradle.internal.serialize.graph.codecs.EncodingProducer
    import org.gradle.internal.serialize.graph.ReadContext
    import org.gradle.internal.serialize.graph.WriteContext
    
    
    object EnumCodec : EncodingProducer, Decoding {
    
        override fun encodingForType(type: Class<*>): Encoding? =
            EnumEncoding.takeIf { type.isEnum }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 04 18:56:44 UTC 2024
    - 1.9K bytes
    - Viewed (0)
Back to top