Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 88 for marshalers (0.24 sec)

  1. cmd/batch-handlers_gen.go

    			return
    		}
    	} else {
    		err = z.Expire.EncodeMsg(en)
    		if err != nil {
    			err = msgp.WrapError(err, "Expire")
    			return
    		}
    	}
    	return
    }
    
    // MarshalMsg implements msgp.Marshaler
    func (z *BatchJobRequest) MarshalMsg(b []byte) (o []byte, err error) {
    	o = msgp.Require(b, z.Msgsize())
    	// map header, size 6
    	// string "ID"
    	o = append(o, 0x86, 0xa2, 0x49, 0x44)
    	o = msgp.AppendString(o, z.ID)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon May 06 20:27:52 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  2. pkg/apis/core/v1/defaults_test.go

    				}
    			} else {
    				if visit.path != "" {
    					marshaled, _ := json.Marshal(defaultedV.Interface())
    					defaults[visit.path] = string(marshaled)
    				}
    				toVisit = append(toVisit, testPath{path: visit.path, value: visit.value.Elem()})
    			}
    
    		case isPrimitive(visit.value.Kind()):
    			if !reflect.DeepEqual(defaultedV.Interface(), zeroV.Interface()) {
    				marshaled, _ := json.Marshal(defaultedV.Interface())
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 84.4K bytes
    - Viewed (0)
  3. src/internal/chacha8rand/chacha8.go

    	var seed [4]uint64
    	for i := range seed {
    		for {
    			x, ok := s.Next()
    			if ok {
    				seed[i] = x
    				break
    			}
    			s.Refill()
    		}
    	}
    	s.Init64(seed)
    }
    
    // Marshal marshals the state into a byte slice.
    // Marshal and Unmarshal are functions, not methods,
    // so that they will not be linked into the runtime
    // when it uses the State struct, since the runtime
    // does not need these.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:47:29 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  4. 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)
  5. staging/src/k8s.io/apiserver/pkg/util/proxy/websocket.go

    		stderrStream: streams[constants.StreamStdErr],
    		tty:          opts.Tty,
    		resizeStream: streams[constants.StreamResize],
    	}
    
    	// writeStatus returns a WriteStatusFunc that marshals a given api Status
    	// as json in the error channel.
    	ctx.writeStatus = func(status *apierrors.StatusError) error {
    		bs, err := json.Marshal(status.Status())
    		if err != nil {
    			return err
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 26 16:28:45 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  6. internal/store/queuestore.go

    	// Increment the item count.
    	store.entries[key] = time.Now().UnixNano()
    
    	return nil
    }
    
    // write - writes an item to the directory.
    func (store *QueueStore[I]) write(key string, item I) error {
    	// Marshalls the item.
    	eventData, err := json.Marshal(item)
    	if err != nil {
    		return err
    	}
    
    	path := filepath.Join(store.directory, key+store.fileExt)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Mar 25 16:44:20 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  7. src/crypto/x509/x509.go

    //
    // The PolicyIdentifier and Policies fields are both used to marshal certificate
    // policy OIDs. By default, only the PolicyIdentifier is marshaled, but if the
    // GODEBUG setting "x509usepolicies" has the value "1", the Policies field will
    // be marshaled instead of the PolicyIdentifier field. The Policies field can
    // be used to marshal policy OIDs which have components that are larger than 31
    // bits.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 09:20:15 UTC 2024
    - 82K bytes
    - Viewed (0)
  8. 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)
  9. src/encoding/json/decode_test.go

    	// either the old base64 string encoding or the new per-element encoding can be
    	// successfully unmarshaled. The custom unmarshalers were accessible in earlier
    	// versions of Go, even though the custom marshaler was not.
    	{
    		CaseName: Name(""),
    		in:       `"AQID"`,
    		ptr:      new([]byteWithMarshalJSON),
    		out:      []byteWithMarshalJSON{1, 2, 3},
    	},
    	{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 16:40:14 UTC 2024
    - 67.6K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/util/intstr/intstr.go

    func (intstr *IntOrString) IntValue() int {
    	if intstr.Type == String {
    		i, _ := strconv.Atoi(intstr.StrVal)
    		return i
    	}
    	return int(intstr.IntVal)
    }
    
    // MarshalJSON implements the json.Marshaller interface.
    func (intstr IntOrString) MarshalJSON() ([]byte, error) {
    	switch intstr.Type {
    	case Int:
    		return json.Marshal(intstr.IntVal)
    	case String:
    		return json.Marshal(intstr.StrVal)
    	default:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:09 UTC 2024
    - 7.8K bytes
    - Viewed (0)
Back to top