Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 170 for marshalers (0.14 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. src/hash/fnv/fnv_test.go

    package fnv
    
    import (
    	"bytes"
    	"encoding"
    	"encoding/binary"
    	"hash"
    	"io"
    	"testing"
    )
    
    type golden struct {
    	out       []byte
    	in        string
    	halfState string // marshaled hash state after first half of in written, used by TestGoldenMarshal
    }
    
    var golden32 = []golden{
    	{[]byte{0x81, 0x1c, 0x9d, 0xc5}, "", "fnv\x01\x81\x1c\x9d\xc5"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 01 21:04:12 UTC 2017
    - 7.3K 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. staging/src/k8s.io/apimachinery/pkg/api/apitesting/naming/naming.go

    	"k8s.io/apimachinery/pkg/runtime"
    	"k8s.io/apimachinery/pkg/runtime/schema"
    	"k8s.io/apimachinery/pkg/util/errors"
    	"k8s.io/apimachinery/pkg/util/sets"
    )
    
    var (
    	marshalerType   = reflect.TypeOf((*json.Marshaler)(nil)).Elem()
    	unmarshalerType = reflect.TypeOf((*json.Unmarshaler)(nil)).Elem()
    )
    
    // VerifyGroupNames ensures that all groups in the scheme ends with the k8s.io suffix.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 27 07:07:03 UTC 2022
    - 5.8K bytes
    - Viewed (0)
  10. 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)
Back to top