Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 473 for marshaled (0.15 sec)

  1. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/time_proto.go

    	m.Time = time.Unix(p.Seconds, int64(0)).Local()
    	return nil
    }
    
    // Marshal implements the protobuf marshaling interface.
    func (m *Time) Marshal() (data []byte, err error) {
    	if m == nil || m.Time.IsZero() {
    		return nil, nil
    	}
    	return m.ProtoTime().Marshal()
    }
    
    // MarshalTo implements the protobuf marshaling interface.
    func (m *Time) MarshalTo(data []byte) (int, error) {
    	if m == nil || m.Time.IsZero() {
    		return 0, nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jul 25 18:54:00 UTC 2019
    - 3.3K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/time.go

    	buf = t.UTC().AppendFormat(buf, time.RFC3339)
    	buf = append(buf, '"')
    	return buf, nil
    }
    
    func (t Time) MarshalCBOR() ([]byte, error) {
    	if t.IsZero() {
    		return cbor.Marshal(nil)
    	}
    
    	return cbor.Marshal(t.UTC().Format(time.RFC3339))
    }
    
    // ToUnstructured implements the value.UnstructuredConverter interface.
    func (t Time) ToUnstructured() interface{} {
    	if t.IsZero() {
    		return nil
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:09 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  3. pkg/kubelet/cm/devicemanager/checkpoint/checkpoint.go

    	return &Data{
    		Data: checkpointData{
    			PodDeviceEntries:  devEntries,
    			RegisteredDevices: devices,
    		},
    	}
    }
    
    // MarshalCheckpoint returns marshalled data
    func (cp *Data) MarshalCheckpoint() ([]byte, error) {
    	cp.Checksum = checksum.New(cp.Data)
    	return json.Marshal(*cp)
    }
    
    // UnmarshalCheckpoint returns unmarshalled data
    func (cp *Data) UnmarshalCheckpoint(blob []byte) error {
    	return json.Unmarshal(blob, cp)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 15 12:01:56 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  4. pkg/volume/csi/nodeinfomanager/nodeinfomanager_test.go

    	}
    
    	if len(capacity) > 0 {
    		node.Status.Capacity = v1.ResourceList(capacity)
    		node.Status.Allocatable = v1.ResourceList(capacity)
    	}
    	return node
    }
    
    func marshall(nodeIDs nodeIDMap) string {
    	b, _ := json.Marshal(nodeIDs)
    	return string(b)
    }
    
    func generateCSINode(nodeIDs nodeIDMap, volumeLimits *storage.VolumeNodeResources, topologyKeys topologyKeyMap) *storage.CSINode {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Dec 17 02:02:59 UTC 2022
    - 34.3K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/mutating/dispatcher_test.go

    				t.Errorf("unexpected error unmarshaling patch annotation: %v", err)
    			}
    			if p["configuration"] != tc.config {
    				t.Errorf("unmarshaled configuration doesn't match, want: %s, got: %v", tc.config, p["configuration"])
    			}
    			if p["webhook"] != tc.webhook {
    				t.Errorf("unmarshaled webhook doesn't match, want: %s, got: %v", tc.webhook, p["webhook"])
    			}
    			var expectedPatch interface{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apimachinery/pkg/api/resource/quantity_proto_test.go

    	}
    	for _, testCase := range table {
    		q := MustParse(testCase.quantity)
    		// Won't currently get an error as MarshalTo can't return one
    		result, _ := q.Marshal()
    		q.MarshalTo(result)
    		if q.Cmp(testCase.expect) != 0 {
    			t.Errorf("Expected: %v, Actual: %v", testCase.expect, q)
    		}
    	}
    	// Test when i is {0,0}
    	table2 := []struct {
    		dec    *inf.Dec
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 25 07:12:11 UTC 2017
    - 3.7K bytes
    - Viewed (0)
  7. cmd/erasure-server-pool-rebalance_gen.go

    func (z rebalSaveOpts) EncodeMsg(en *msgp.Writer) (err error) {
    	err = en.WriteUint8(uint8(z))
    	if err != nil {
    		err = msgp.WrapError(err)
    		return
    	}
    	return
    }
    
    // MarshalMsg implements msgp.Marshaler
    func (z rebalSaveOpts) MarshalMsg(b []byte) (o []byte, err error) {
    	o = msgp.Require(b, z.Msgsize())
    	o = msgp.AppendUint8(o, uint8(z))
    	return
    }
    
    // UnmarshalMsg implements msgp.Unmarshaler
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Mar 21 17:21:35 UTC 2024
    - 26.8K bytes
    - Viewed (0)
  8. src/cmd/dist/testjson.go

    	var buf bytes.Buffer
    	var marshal1 func(v jsonValue) error
    	marshal1 = func(v jsonValue) error {
    		if t, ok := v.atom.(json.Delim); ok {
    			buf.WriteRune(rune(t))
    			for i, v2 := range v.seq {
    				if t == '{' && i%2 == 1 {
    					buf.WriteByte(':')
    				} else if i > 0 {
    					buf.WriteByte(',')
    				}
    				if err := marshal1(v2); err != nil {
    					return err
    				}
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 20:46:32 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  9. staging/src/k8s.io/api/flowcontrol/v1beta1/generated.pb.go

    }
    
    func (m *ExemptPriorityLevelConfiguration) Marshal() (dAtA []byte, err error) {
    	size := m.Size()
    	dAtA = make([]byte, size)
    	n, err := m.MarshalToSizedBuffer(dAtA[:size])
    	if err != nil {
    		return nil, err
    	}
    	return dAtA[:n], nil
    }
    
    func (m *ExemptPriorityLevelConfiguration) MarshalTo(dAtA []byte) (int, error) {
    	size := m.Size()
    	return m.MarshalToSizedBuffer(dAtA[:size])
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:37 UTC 2024
    - 142K bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/samples/build-organization/structuring-software-projects/groovy/server-application/app/build.gradle

    group = "${group}.server-application"
    
    dependencies {
        implementation('com.example.myproduct.user-feature:table')
        implementation('com.example.myproduct.admin-feature:config')
    
        implementation('org.apache.juneau:juneau-marshall')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 300 bytes
    - Viewed (0)
Back to top