Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 93 for marshaled (0.4 sec)

  1. src/crypto/hmac/hmac.go

    type hmac struct {
    	opad, ipad   []byte
    	outer, inner hash.Hash
    
    	// If marshaled is true, then opad and ipad do not contain a padded
    	// copy of the key, but rather the marshaled state of outer/inner after
    	// opad/ipad has been fed into it.
    	marshaled bool
    }
    
    func (h *hmac) Sum(in []byte) []byte {
    	origLen := len(in)
    	in = h.inner.Sum(in)
    
    	if h.marshaled {
    		if err := h.outer.(marshalable).UnmarshalBinary(h.opad); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 17:09:47 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  2. pkg/version/cobra.go

    						}
    					}
    				}
    			case "yaml":
    				if marshaled, err := yaml.Marshal(&version); err == nil {
    					_, _ = fmt.Fprintln(cmd.OutOrStdout(), string(marshaled))
    				}
    			case "json":
    				if marshaled, err := json.MarshalIndent(&version, "", "  "); err == nil {
    					_, _ = fmt.Fprintln(cmd.OutOrStdout(), string(marshaled))
    				}
    			}
    
    			return nil
    		},
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Aug 08 16:43:05 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  3. src/internal/fuzz/encoding_test.go

    		b := marshalCorpusFile(x1)
    		t.Logf("marshaled math.Float64frombits(0x%x):\n%s", u1, b)
    
    		xs, err := unmarshalCorpusFile(b)
    		if err != nil {
    			t.Fatal(err)
    		}
    		if len(xs) != 1 {
    			t.Fatalf("unmarshaled %d values", len(xs))
    		}
    		x2 := xs[0].(float64)
    		u2 := math.Float64bits(x2)
    		if u2 != u1 {
    			t.Errorf("unmarshaled %v (bits 0x%x)", x2, u2)
    		}
    	})
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 00:20:34 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  4. src/math/big/floatmarsh.go

    const floatGobVersion byte = 1
    
    // GobEncode implements the [encoding/gob.GobEncoder] interface.
    // The [Float] value and all its attributes (precision,
    // rounding mode, accuracy) are marshaled.
    func (x *Float) GobEncode() ([]byte, error) {
    	if x == nil {
    		return nil, nil
    	}
    
    	// determine max. space (bytes) required for encoding
    	sz := 1 + 1 + 4 // version + mode|acc|form|neg (3+2+2+1bit) + prec
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:31:58 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  5. cmd/kubeadm/app/componentconfigs/kubelet_unix.go

    	kubeletconfig "k8s.io/kubelet/config/v1beta1"
    	"k8s.io/utils/ptr"
    
    	"k8s.io/kubernetes/cmd/kubeadm/app/util/initsystem"
    )
    
    // Mutate allows applying pre-defined modifications to the config before it's marshaled.
    func (kc *kubeletConfig) Mutate() error {
    	if err := mutateResolverConfig(&kc.config, isServiceActive); err != nil {
    		return err
    	}
    	return nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 25 10:26:46 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  6. src/cmd/go/internal/modindex/scan.go

    	}
    	s, err := json.Marshal(p)
    	if err != nil {
    		panic(err) // This should be impossible because scanner.Error contains only strings and ints.
    	}
    	return string(s)
    }
    
    // parseErrorFromString converts a string produced by parseErrorToString back
    // to an error.  An empty string is converted to a nil error, and all
    // other strings are expected to be JSON-marshaled parseError structs.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  7. operator/pkg/metrics/monitoring.go

    	// OverlayError overlaying YAMLs to combine profile, user
    	// defined settings in CR, Hub-tag etc. fails.
    	OverlayError MergeErrorType = "overlay"
    
    	// IOPFormatError occurs when supplied CR cannot be marshaled
    	// or unmarshaled to/from YAML.
    	IOPFormatError MergeErrorType = "iop_format"
    
    	// TranslateValuesError occurs when translating from legacy API fails.
    	TranslateValuesError MergeErrorType = "translate_values"
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Aug 10 15:35:03 UTC 2023
    - 7K bytes
    - Viewed (0)
  8. pilot/pkg/xds/xdsgen.go

    			util.ByteCount(ResourceSize(res)), info, debug)
    	}
    
    	return nil
    }
    
    func ResourceSize(r model.Resources) int {
    	// Approximate size by looking at the Any marshaled size. This avoids high cost
    	// proto.Size, at the expense of slightly under counting.
    	size := 0
    	for _, r := range r {
    		size += len(r.Resource.Value)
    	}
    	return size
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 13 20:55:20 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  9. src/html/template/doc.go

    in the escaped template
    
    	<script>var pair = {{.}};</script>
    
    then the template output is
    
    	<script>var pair = {"A": "foo", "B": "bar"};</script>
    
    See package json to understand how non-string content is marshaled for
    embedding in JavaScript contexts.
    
    # Typed Strings
    
    By default, this package assumes that all pipelines produce a plain text string.
    It adds escaping pipeline stages necessary to correctly and safely embed that
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:04:29 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  10. src/crypto/x509/pkix/pkix.go

    	// by this package. When marshaling to RDNSequences, the Names field is
    	// ignored, see ExtraNames.
    	Names []AttributeTypeAndValue
    
    	// ExtraNames contains attributes to be copied, raw, into any marshaled
    	// distinguished names. Values override any attributes with the same OID.
    	// The ExtraNames field is not populated when parsing, see Names.
    	ExtraNames []AttributeTypeAndValue
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 17:09:47 UTC 2023
    - 9.1K bytes
    - Viewed (0)
Back to top