Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 29 of 29 for IsNil (0.04 sec)

  1. internal/grid/msg_gen.go

    			return
    		}
    		switch msgp.UnsafeString(field) {
    		case "nf":
    			z.NotFound, err = dc.ReadBool()
    			if err != nil {
    				err = msgp.WrapError(err, "NotFound")
    				return
    			}
    		case "e":
    			if dc.IsNil() {
    				err = dc.ReadNil()
    				if err != nil {
    					err = msgp.WrapError(err, "Err")
    					return
    				}
    				z.Err = nil
    			} else {
    				if z.Err == nil {
    					z.Err = new(string)
    				}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Jul 25 21:07:21 UTC 2024
    - 22.4K bytes
    - Viewed (0)
  2. schema/schema.go

    	if dest == nil {
    		return nil, fmt.Errorf("%w: %+v", ErrUnsupportedDataType, dest)
    	}
    
    	value := reflect.ValueOf(dest)
    	if value.Kind() == reflect.Ptr && value.IsNil() {
    		value = reflect.New(value.Type().Elem())
    	}
    	modelType := reflect.Indirect(value).Type()
    
    	if modelType.Kind() == reflect.Interface {
    		modelType = reflect.Indirect(reflect.ValueOf(dest)).Elem().Type()
    	}
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Thu Jun 20 12:19:31 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  3. internal/grid/types.go

    // remainder of bytes.
    func (m *MSS) UnmarshalMsg(bts []byte) (o []byte, err error) {
    	if m == nil {
    		return bts, errors.New("MSS: UnmarshalMsg on nil pointer")
    	}
    	if msgp.IsNil(bts) {
    		bts = bts[1:]
    		*m = nil
    		return bts, nil
    	}
    	var zb0002 uint32
    	zb0002, bts, err = msgp.ReadMapHeaderBytes(bts)
    	if err != nil {
    		err = msgp.WrapError(err, "Values")
    		return
    	}
    	dst := *m
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  4. cmd/data-usage-cache_gen.go

    				z.ObjVersions[za0002], err = dc.ReadUint64()
    				if err != nil {
    					err = msgp.WrapError(err, "ObjVersions", za0002)
    					return
    				}
    			}
    		case "ats":
    			if dc.IsNil() {
    				err = dc.ReadNil()
    				if err != nil {
    					err = msgp.WrapError(err, "AllTierStats")
    					return
    				}
    				z.AllTierStats = nil
    			} else {
    				if z.AllTierStats == nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 75K bytes
    - Viewed (0)
  5. cmd/storage-datatypes_gen.go

    		err = msgp.WrapError(err, "MarkDeleted")
    		return
    	}
    	err = z.ReplicationState.DecodeMsg(dc)
    	if err != nil {
    		err = msgp.WrapError(err, "ReplicationState")
    		return
    	}
    	if dc.IsNil() {
    		err = dc.ReadNil()
    		if err != nil {
    			err = msgp.WrapError(err)
    			return
    		}
    		z.Data = nil
    	} else {
    		z.Data, err = dc.ReadBytes(z.Data)
    		if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 150.2K bytes
    - Viewed (0)
  6. statement.go

    			stmt.Vars = append(stmt.Vars, v.Value)
    		case clause.Column, clause.Table:
    			stmt.QuoteTo(writer, v)
    		case Valuer:
    			reflectValue := reflect.ValueOf(v)
    			if reflectValue.Kind() == reflect.Ptr && reflectValue.IsNil() {
    				stmt.AddVar(writer, nil)
    			} else {
    				stmt.AddVar(writer, v.GormValue(stmt.Context, stmt.DB))
    			}
    		case clause.Interface:
    			c := clause.Clause{Name: v.Name()}
    			v.MergeClause(&c)
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Jun 24 09:42:59 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  7. api/go1.5.txt

    pkg go/types, method (TypeAndValue) Assignable() bool
    pkg go/types, method (TypeAndValue) HasOk() bool
    pkg go/types, method (TypeAndValue) IsBuiltin() bool
    pkg go/types, method (TypeAndValue) IsNil() bool
    pkg go/types, method (TypeAndValue) IsType() bool
    pkg go/types, method (TypeAndValue) IsValue() bool
    pkg go/types, method (TypeAndValue) IsVoid() bool
    pkg go/types, type Array struct
    pkg go/types, type Basic struct
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Jul 30 21:14:09 UTC 2015
    - 46.6K bytes
    - Viewed (0)
  8. cmd/object-api-datatypes_gen.go

    				return
    			}
    		case "Size":
    			z.Size, bts, err = msgp.ReadInt64Bytes(bts)
    			if err != nil {
    				err = msgp.WrapError(err, "Size")
    				return
    			}
    		case "ActualSize":
    			if msgp.IsNil(bts) {
    				bts, err = msgp.ReadNilBytes(bts)
    				if err != nil {
    					return
    				}
    				z.ActualSize = nil
    			} else {
    				if z.ActualSize == nil {
    					z.ActualSize = new(int64)
    				}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 70.1K bytes
    - Viewed (0)
  9. api/go1.txt

    pkg reflect, method (Value) Index(int) Value
    pkg reflect, method (Value) Int() int64
    pkg reflect, method (Value) Interface() interface{}
    pkg reflect, method (Value) InterfaceData() [2]uintptr
    pkg reflect, method (Value) IsNil() bool
    pkg reflect, method (Value) IsValid() bool
    pkg reflect, method (Value) Kind() Kind
    pkg reflect, method (Value) Len() int
    pkg reflect, method (Value) MapIndex(Value) Value
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
Back to top