Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 314 for marshaling (0.2 sec)

  1. src/encoding/xml/xml_test.go

    	}
    	if len(c.C.XMLName.Space) != 0 {
    		t.Errorf("overidding with empty namespace: after marshaling & unmarshaling, got %s, want empty\n", a.C.XMLName.Space)
    	}
    }
    
    func TestIssue20396(t *testing.T) {
    
    	var attrError = UnmarshalError("XML syntax error on line 1: expected attribute name in element")
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 36.9K bytes
    - Viewed (0)
  2. 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)
  3. pkg/api/testing/unstructured_test.go

    	if err != nil {
    		t.Errorf("Error when marshaling object: %v", err)
    		return
    	}
    	unstr := make(map[string]interface{})
    	err = json.Unmarshal(data, &unstr)
    	if err != nil {
    		t.Errorf("Error when unmarshaling to unstructured: %v", err)
    		return
    	}
    
    	data, err = json.Marshal(unstr)
    	if err != nil {
    		t.Errorf("Error when marshaling unstructured: %v", err)
    		return
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:10 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/response.go

    		identifier.Options = *e.tableOptions
    		identifier.NoHeaders = e.tableOptions.NoHeaders
    	}
    
    	result, err := json.Marshal(identifier)
    	if err != nil {
    		klog.Fatalf("Failed marshaling identifier for watchEmbeddedEncoder: %v", err)
    	}
    	return runtime.Identifier(result)
    }
    
    // watchEncoder performs encoding of the watch events.
    //
    // NOTE: watchEncoder is NOT thread-safe.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 18 09:07:03 UTC 2023
    - 16.5K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. internal/bucket/lifecycle/expiration.go

    }
    
    // ExpireDeleteMarker represents value of ExpiredObjectDeleteMarker field in Expiration XML element.
    type ExpireDeleteMarker struct {
    	Boolean
    }
    
    // Boolean signifies a boolean XML struct with custom marshaling
    type Boolean struct {
    	val    bool
    	set    bool
    	Unused struct{} // Needed for GOB compatibility
    }
    
    // Expiration - expiration actions for a rule in lifecycle configuration.
    type Expiration struct {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Feb 21 20:28:34 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  9. src/crypto/x509/pkix/pkix.go

    	// Names contains all parsed attributes. When parsing distinguished names,
    	// this can be used to extract non-standard attributes that are not parsed
    	// 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
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 17:09:47 UTC 2023
    - 9.1K bytes
    - Viewed (0)
  10. pkg/adsc/adsc.go

    	Message proto.Message
    }
    
    func (p jsonMarshalProtoWithName) MarshalJSON() ([]byte, error) {
    	strSer, serr := protomarshal.ToJSONWithIndent(p.Message, "  ")
    	if serr != nil {
    		adscLog.Warnf("Error for marshaling [%s]: %v", p.Name, serr)
    		return []byte(""), serr
    	}
    	serialItem := []byte("{\"" + p.Name + "\":" + strSer + "}")
    	return serialItem, nil
    }
    
    var adscLog = log.RegisterScope("adsc", "adsc debugging")
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Feb 05 22:18:49 UTC 2024
    - 35K bytes
    - Viewed (0)
Back to top