Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for marshalers (0.26 sec)

  1. src/encoding/xml/marshal_test.go

    		},
    	},
    
    	// Test omitempty with parent chain; see golang.org/issue/4168.
    	{
    		ExpectXML: `<Strings><A></A></Strings>`,
    		Value:     &Strings{},
    	},
    	// Custom marshalers.
    	{
    		ExpectXML: `<MyMarshalerTest>hello world</MyMarshalerTest>`,
    		Value:     &MyMarshalerTest{},
    	},
    	{
    		ExpectXML: `<MarshalerStruct Foo="hello world"></MarshalerStruct>`,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 18:46:41 UTC 2024
    - 66K bytes
    - Viewed (0)
  2. cmd/object-api-datatypes_gen.go

    package cmd
    
    // Code generated by github.com/tinylib/msgp DO NOT EDIT.
    
    import (
    	"github.com/minio/minio/internal/bucket/replication"
    	"github.com/tinylib/msgp/msgp"
    )
    
    // MarshalMsg implements msgp.Marshaler
    func (z BackendType) MarshalMsg(b []byte) (o []byte, err error) {
    	o = msgp.Require(b, z.Msgsize())
    	o = msgp.AppendInt(o, int(z))
    	return
    }
    
    // UnmarshalMsg implements msgp.Unmarshaler
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 70.1K bytes
    - Viewed (0)
  3. cmd/bucket-replication-utils_gen.go

    	if err != nil {
    		return
    	}
    	err = en.WriteTime(z.LastUpdate)
    	if err != nil {
    		err = msgp.WrapError(err, "LastUpdate")
    		return
    	}
    	return
    }
    
    // MarshalMsg implements msgp.Marshaler
    func (z *BucketReplicationResyncStatus) MarshalMsg(b []byte) (o []byte, err error) {
    	o = msgp.Require(b, z.Msgsize())
    	// map header, size 4
    	// string "v"
    	o = append(o, 0x84, 0xa1, 0x76)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Mar 21 17:21:35 UTC 2024
    - 61.1K bytes
    - Viewed (0)
  4. cmd/xl-storage-format-v2_gen.go

    func (z ChecksumAlgo) 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 ChecksumAlgo) 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: Wed May 29 19:14:09 UTC 2024
    - 53.8K bytes
    - Viewed (0)
  5. cmd/bucket-stats_gen.go

    	if err != nil {
    		return
    	}
    	err = en.WriteInt64(z.FailedCount)
    	if err != nil {
    		err = msgp.WrapError(err, "FailedCount")
    		return
    	}
    	return
    }
    
    // MarshalMsg implements msgp.Marshaler
    func (z *BucketReplicationStat) MarshalMsg(b []byte) (o []byte, err error) {
    	o = msgp.Require(b, z.Msgsize())
    	// map header, size 14
    	// string "ReplicatedSize"
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Feb 06 06:00:45 UTC 2024
    - 57.5K bytes
    - Viewed (0)
  6. 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)
  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/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)
  9. 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)
  10. 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)
Back to top