Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 103 for marshaling (0.27 sec)

  1. src/cmd/compile/internal/test/fixedbugs_test.go

    		}
    		// The bug was in the following assignment. The return
    		// value of makeT() is not copied out of the args area of
    		// stack frame in a timely fashion. So when write barriers
    		// are enabled, the marshaling of the args for the write
    		// barrier call clobbers the result of makeT() before it is
    		// read by the write barrier code.
    		g = makeT()
    		sink = make([]byte, 1000) // force write barriers to eventually happen
    	}
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 06 18:07:35 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/endpoints/discovery/util.go

    	result := map[string]string{
    		"name": "stripVersion",
    	}
    	if e != nil {
    		result["encoder"] = string(e.Identifier())
    	}
    	identifier, err := json.Marshal(result)
    	if err != nil {
    		klog.Fatalf("Failed marshaling identifier for stripVersionEncoder: %v", err)
    	}
    	return runtime.Identifier(identifier)
    }
    
    func (c stripVersionEncoder) Encode(obj runtime.Object, w io.Writer) error {
    	if co, ok := obj.(runtime.CacheableObject); ok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 16 11:54:27 UTC 2020
    - 3.3K bytes
    - Viewed (0)
  3. common-protos/k8s.io/apimachinery/pkg/api/resource/generated.proto

    // Package-wide variables from generator "generated".
    option go_package = "k8s.io/apimachinery/pkg/api/resource";
    
    // Quantity is a fixed-point representation of a number.
    // It provides convenient marshaling/unmarshaling in JSON and YAML,
    // in addition to String() and AsInt64() accessors.
    //
    // The serialization format is:
    //
    // ```
    // <quantity>        ::= <signedNumber><suffix>
    //
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 11 18:43:24 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  4. tensorflow/c/experimental/saved_model/core/revived_types/flat_tensor_function.h

    // Effectively, it is a thin wrapper around a FunctionDef owned by the
    // EagerContext, and any TensorHandle captures associated with the function. The
    // MakeCallOp method handles the logic of marshaling captures after the user
    // provided inputs automatically.
    // Note(bmzhao): This class is mainly intended to house low-level reusable
    // function logic between SignatureDefFunction and ConcreteFunction, which
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Sep 22 21:03:41 UTC 2020
    - 3.8K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apimachinery/pkg/api/resource/generated.proto

    // Package-wide variables from generator "generated".
    option go_package = "k8s.io/apimachinery/pkg/api/resource";
    
    // Quantity is a fixed-point representation of a number.
    // It provides convenient marshaling/unmarshaling in JSON and YAML,
    // in addition to String() and AsInt64() accessors.
    //
    // The serialization format is:
    //
    // ```
    // <quantity>        ::= <signedNumber><suffix>
    //
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 26 17:14:05 UTC 2022
    - 3.9K bytes
    - Viewed (0)
  6. src/math/big/floatmarsh_test.go

    					continue
    				}
    				b, err := json.Marshal(&tx)
    				if err != nil {
    					t.Errorf("marshaling of %v (prec = %d) failed: %v", &tx, prec, err)
    					continue
    				}
    				var rx Float
    				rx.SetPrec(prec)
    				if err := json.Unmarshal(b, &rx); err != nil {
    					t.Errorf("unmarshaling of %v (prec = %d) failed: %v", &tx, prec, err)
    					continue
    				}
    				if rx.Cmp(&tx) != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 23 18:18:05 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  7. src/crypto/hmac/hmac.go

    	if err != nil {
    		return
    	}
    
    	h.outer.Reset()
    	h.outer.Write(h.opad)
    	omarshal, err := marshalableOuter.MarshalBinary()
    	if err != nil {
    		return
    	}
    
    	// Marshaling succeeded; save the marshaled state for later
    	h.ipad = imarshal
    	h.opad = omarshal
    	h.marshaled = true
    }
    
    // New returns a new HMAC hash using the given [hash.Hash] type and key.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 17:09:47 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  8. src/syscall/dir_plan9.go

    // Copyright 2012 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Plan 9 directory marshaling. See intro(5).
    
    package syscall
    
    import (
    	"errors"
    	"internal/byteorder"
    )
    
    var (
    	ErrShortStat = errors.New("stat buffer too short")
    	ErrBadStat   = errors.New("malformed stat buffer")
    	ErrBadName   = errors.New("bad character in file name")
    )
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 19:32:38 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/time.go

    */
    
    package v1
    
    import (
    	"encoding/json"
    	"time"
    
    	cbor "k8s.io/apimachinery/pkg/runtime/serializer/cbor/direct"
    )
    
    // Time is a wrapper around time.Time which supports correct
    // marshaling to YAML and JSON.  Wrappers are provided for many
    // of the factory methods that the time package offers.
    //
    // +protobuf.options.marshal=false
    // +protobuf.as=Timestamp
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:09 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  10. cmd/kubeadm/app/phases/addons/proxy/proxy.go

    	}
    
    	proxyBytes, err := kubeProxyCfg.Marshal()
    	if err != nil {
    		return []byte(""), errors.Wrap(err, "error when marshaling")
    	}
    	var prefixBytes bytes.Buffer
    	apiclient.PrintBytesWithLinePrefix(&prefixBytes, proxyBytes, "    ")
    	configMapBytes, err := kubeadmutil.ParseTemplate(KubeProxyConfigMap19,
    		struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 26 13:23:44 UTC 2023
    - 8.1K bytes
    - Viewed (0)
Back to top