Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 143 for marshalers (0.21 sec)

  1. cmd/tier_gen.go

    			return
    		}
    		err = za0002.EncodeMsg(en)
    		if err != nil {
    			err = msgp.WrapError(err, "Tiers", za0001)
    			return
    		}
    	}
    	return
    }
    
    // MarshalMsg implements msgp.Marshaler
    func (z *TierConfigMgr) MarshalMsg(b []byte) (o []byte, err error) {
    	o = msgp.Require(b, z.Msgsize())
    	// map header, size 1
    	// string "Tiers"
    	o = append(o, 0x81, 0xa5, 0x54, 0x69, 0x65, 0x72, 0x73)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 20 00:53:08 UTC 2023
    - 4K bytes
    - Viewed (0)
  2. cmd/site-replication-metrics_gen.go

    	if err != nil {
    		return
    	}
    	err = en.WriteInt64(z.Bytes)
    	if err != nil {
    		err = msgp.WrapError(err, "Bytes")
    		return
    	}
    	return
    }
    
    // MarshalMsg implements msgp.Marshaler
    func (z RStat) MarshalMsg(b []byte) (o []byte, err error) {
    	o = msgp.Require(b, z.Msgsize())
    	// map header, size 2
    	// string "Count"
    	o = append(o, 0x82, 0xa5, 0x43, 0x6f, 0x75, 0x6e, 0x74)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Feb 06 06:00:45 UTC 2024
    - 40.6K bytes
    - Viewed (0)
  3. internal/grid/types.go

    	if *u != nil {
    		for key := range *u {
    			delete(*u, key)
    		}
    		val := map[string][]string(*u)
    		urlValuesPool.Put(val)
    		*u = nil
    	}
    }
    
    // MarshalMsg implements msgp.Marshaler
    func (u URLValues) MarshalMsg(b []byte) (o []byte, err error) {
    	o = msgp.Require(b, u.Msgsize())
    	o = msgp.AppendMapHeader(o, uint32(len(u)))
    	for zb0006, zb0007 := range u {
    		o = msgp.AppendString(o, zb0006)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Apr 01 23:42:09 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/util/managedfields/internal/managedfields_test.go

    			if err != nil {
    				t.Fatalf("did not expect encoding error but got: %v", err)
    			}
    			marshaled, err := yaml.Marshal(&encoded)
    			if err != nil {
    				t.Fatalf("did not expect yaml marshalling error but got: %v", err)
    			}
    			if !reflect.DeepEqual(string(marshaled), test) {
    				t.Fatalf("expected:\n%v\nbut got:\n%v", test, string(marshaled))
    			}
    		})
    	}
    }
    
    func TestBuildManagerIdentifier(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 08 21:44:00 UTC 2023
    - 16.9K bytes
    - Viewed (0)
  5. cmd/data-usage-cache_gen.go

    			return
    		}
    		err = en.WriteInt(za0002.NumObjects)
    		if err != nil {
    			err = msgp.WrapError(err, "Tiers", za0001, "NumObjects")
    			return
    		}
    	}
    	return
    }
    
    // MarshalMsg implements msgp.Marshaler
    func (z *allTierStats) MarshalMsg(b []byte) (o []byte, err error) {
    	o = msgp.Require(b, z.Msgsize())
    	// map header, size 1
    	// string "ts"
    	o = append(o, 0x81, 0xa2, 0x74, 0x73)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Mar 21 17:21:35 UTC 2024
    - 100.8K bytes
    - Viewed (0)
  6. pkg/config/analysis/diag/message.go

    func (m *Message) String() string {
    	return fmt.Sprintf("%v [%v]%s %s",
    		m.Type.Level(), m.Type.Code(), m.Origin(),
    		fmt.Sprintf(m.Type.Template(), m.Parameters...))
    }
    
    // MarshalJSON satisfies the Marshaler interface
    func (m *Message) MarshalJSON() ([]byte, error) {
    	return json.Marshal(m.Unstructured(true))
    }
    
    // NewMessageType returns a new MessageType instance.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Nov 10 02:05:07 UTC 2022
    - 5.1K bytes
    - Viewed (0)
  7. cmd/batch-expire_gen.go

    	for za0001 := range z.Rules {
    		err = z.Rules[za0001].EncodeMsg(en)
    		if err != nil {
    			err = msgp.WrapError(err, "Rules", za0001)
    			return
    		}
    	}
    	return
    }
    
    // MarshalMsg implements msgp.Marshaler
    func (z *BatchJobExpire) MarshalMsg(b []byte) (o []byte, err error) {
    	o = msgp.Require(b, z.Msgsize())
    	// map header, size 6
    	// string "APIVersion"
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Dec 02 10:51:33 UTC 2023
    - 19.8K bytes
    - Viewed (0)
  8. src/cmd/go/internal/modindex/scan.go

    	ErrorString string
    }
    
    // parseErrorToString converts the error from parsing the file into a string
    // representation. A nil error is converted to an empty string, and all other
    // errors are converted to a JSON-marshaled parseError struct, with ErrorList
    // set for errors of type scanner.ErrorList, and ErrorString set to the error's
    // string representation for all other errors.
    func parseErrorToString(err error) string {
    	if err == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  9. src/encoding/json/stream.go

    // of the output, SetEscapeHTML(false) disables this behavior.
    func (enc *Encoder) SetEscapeHTML(on bool) {
    	enc.escapeHTML = on
    }
    
    // RawMessage is a raw encoded JSON value.
    // It implements [Marshaler] and [Unmarshaler] and can
    // be used to delay JSON decoding or precompute a JSON encoding.
    type RawMessage []byte
    
    // MarshalJSON returns m as the JSON encoding of m.
    func (m RawMessage) MarshalJSON() ([]byte, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:04:28 UTC 2023
    - 12.9K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/micro_time.go

    		return nil
    	}
    
    	pt, err := time.Parse(RFC3339Micro, str)
    	if err != nil {
    		return err
    	}
    
    	t.Time = pt.Local()
    	return nil
    }
    
    // MarshalJSON implements the json.Marshaler interface.
    func (t MicroTime) MarshalJSON() ([]byte, error) {
    	if t.IsZero() {
    		// Encode unset/nil objects as JSON's "null".
    		return []byte("null"), nil
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:10 UTC 2024
    - 5.2K bytes
    - Viewed (0)
Back to top