Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 41 for marshalers (0.35 sec)

  1. src/cmd/vendor/github.com/google/pprof/profile/profile.go

    	p.encodeMu.Unlock()
    	return b
    }
    
    // Write writes the profile as a gzip-compressed marshaled protobuf.
    func (p *Profile) Write(w io.Writer) error {
    	zw := gzip.NewWriter(w)
    	defer zw.Close()
    	_, err := zw.Write(serialize(p))
    	return err
    }
    
    // WriteUncompressed writes the profile as a marshaled protobuf.
    func (p *Profile) WriteUncompressed(w io.Writer) error {
    	_, err := w.Write(serialize(p))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  2. pkg/config/model.go

    			b, err := protomarshal.MarshalIndent(pb, indent)
    			return b, err
    		}
    	}
    
    	b := &bytes.Buffer{}
    	// gogo protobuf
    	if pb, ok := s.(gogoproto.Message); ok {
    		err := (&gogojsonpb.Marshaler{Indent: indent}).Marshal(b, pb)
    		return b.Bytes(), err
    	}
    	if pretty {
    		return json.MarshalIndent(s, "", indent)
    	}
    	return json.Marshal(s)
    }
    
    type deepCopier interface {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 15:31:09 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  3. internal/config/storageclass/storage-class.go

    	scStr := string(b)
    	if scStr == "" {
    		return nil
    	}
    	s, err := parseStorageClass(scStr)
    	if err != nil {
    		return err
    	}
    	sc.Parity = s.Parity
    	return nil
    }
    
    // MarshalText - marshals storage class string.
    func (sc *StorageClass) MarshalText() ([]byte, error) {
    	if sc.Parity != 0 {
    		return []byte(fmt.Sprintf("%s:%d", schemePrefix, sc.Parity)), nil
    	}
    	return []byte{}, nil
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  4. pkg/volume/util/operationexecutor/operation_executor.go

    	}{
    		VolumeName: volumeSpecName,
    		UniqueName: string(volume.VolumeName),
    		NodeName:   string(volume.NodeName),
    	}
    }
    
    var _ fmt.Stringer = &VolumeToAttach{}
    var _ logr.Marshaler = &VolumeToAttach{}
    
    // VolumeToMount represents a volume that should be attached to this node and
    // mounted to the PodName.
    type VolumeToMount struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  5. internal/grid/handlers.go

    }
    
    // RoundTripper provides an interface for type roundtrip serialization.
    type RoundTripper interface {
    	msgp.Unmarshaler
    	msgp.Marshaler
    	msgp.Sizer
    
    	comparable
    }
    
    // SingleHandler is a type safe handler for single roundtrip requests.
    type SingleHandler[Req, Resp RoundTripper] struct {
    	id            HandlerID
    	sharedResp    bool
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  6. src/crypto/tls/conn.go

    		m = new(endOfEarlyDataMsg)
    	case typeKeyUpdate:
    		m = new(keyUpdateMsg)
    	default:
    		return nil, c.in.setErrorLocked(c.sendAlert(alertUnexpectedMessage))
    	}
    
    	// The handshake message unmarshalers
    	// expect to be able to keep references to data,
    	// so pass in a fresh copy that won't be overwritten.
    	data = append([]byte(nil), data...)
    
    	if !m.unmarshal(data) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 51.8K bytes
    - Viewed (0)
  7. src/time/time.go

    }
    
    // GobDecode implements the gob.GobDecoder interface.
    func (t *Time) GobDecode(data []byte) error {
    	return t.UnmarshalBinary(data)
    }
    
    // MarshalJSON implements the [json.Marshaler] interface.
    // The time is a quoted string in the RFC 3339 format with sub-second precision.
    // If the timestamp cannot be represented as valid RFC 3339
    // (e.g., the year is out of range), then an error is reported.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 50.7K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go

    		number, suffix := q.CanonicalizeBytes(result)
    		number = append(number, suffix...)
    		q.s = string(number)
    	}
    	return q.s
    }
    
    // MarshalJSON implements the json.Marshaller interface.
    func (q Quantity) MarshalJSON() ([]byte, error) {
    	if len(q.s) > 0 {
    		out := make([]byte, len(q.s)+2)
    		out[0], out[len(out)-1] = '"', '"'
    		copy(out[1:], q.s)
    		return out, nil
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:10 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  9. pilot/pkg/networking/core/cluster_builder.go

    		},
    	},
    })
    
    // clusterWrapper wraps Cluster object along with upstream protocol options.
    type clusterWrapper struct {
    	cluster *cluster.Cluster
    	// httpProtocolOptions stores the HttpProtocolOptions which will be marshaled when build is called.
    	httpProtocolOptions *http.HttpProtocolOptions
    }
    
    // metadataCerts hosts client certificate related metadata specified in proxy metadata.
    type metadataCerts struct {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 31.6K bytes
    - Viewed (0)
  10. cmd/kubeadm/app/apis/kubeadm/types.go

    	// SetUserSupplied sets the state of the component config "user supplied" flag to, either true, or false.
    	SetUserSupplied(userSupplied bool)
    
    	// Mutate allows applying pre-defined modifications to the config before it's marshaled.
    	Mutate() error
    
    	// Set can be used to set the internal configuration in the ComponentConfig
    	Set(interface{})
    
    	// Get can be used to get the internal configuration in the ComponentConfig
    	Get() interface{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 17 03:12:52 UTC 2024
    - 32.6K bytes
    - Viewed (0)
Back to top