Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 938 for Nil (0.04 sec)

  1. cmd/batch-expire_gen.go

    	if err != nil {
    		return
    	}
    	err = en.WriteString(z.APIVersion)
    	if err != nil {
    		err = msgp.WrapError(err, "APIVersion")
    		return
    	}
    	// write "Bucket"
    	err = en.Append(0xa6, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74)
    	if err != nil {
    		return
    	}
    	err = en.WriteString(z.Bucket)
    	if err != nil {
    		err = msgp.WrapError(err, "Bucket")
    		return
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 01 12:53:30 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  2. internal/s3select/sql/statement.go

    			for i, val := range v {
    				tmpRec := input.Clone(nil)
    				if err = tmpRec.Replace(val); err != nil {
    					return nil, err
    				}
    				recs[i] = &tmpRec
    			}
    			return recs, nil
    
    		default:
    			kvs = jstream.KVS{jstream.KV{Key: "_1", Value: v}}
    		}
    
    		if err = input.Replace(kvs); err != nil {
    			return nil, err
    		}
    
    		return []*Record{&input}, nil
    	case simdjson.Object:
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 23 19:35:41 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  3. internal/s3select/sql/funceval.go

    		return nil, err
    	}
    	ts1, ok := tval1.ToTimestamp()
    	if !ok {
    		return nil, fmt.Errorf("%s() expects two timestamp arguments", sqlFnDateDiff)
    	}
    
    	tval2, err := d.Timestamp2.evalNode(r, tableAlias)
    	if err != nil {
    		return nil, err
    	}
    	if err = inferTypeAsTimestamp(tval2); err != nil {
    		return nil, err
    	}
    	ts2, ok := tval2.ToTimestamp()
    	if !ok {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 13.2K bytes
    - Viewed (0)
  4. cmd/batch-handlers_gen.go

    					z.KeyRotate = new(BatchJobKeyRotateV1)
    				}
    				err = z.KeyRotate.DecodeMsg(dc)
    				if err != nil {
    					err = msgp.WrapError(err, "KeyRotate")
    					return
    				}
    			}
    		case "Expire":
    			if dc.IsNil() {
    				err = dc.ReadNil()
    				if err != nil {
    					err = msgp.WrapError(err, "Expire")
    					return
    				}
    				z.Expire = nil
    			} else {
    				if z.Expire == nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 01 12:53:30 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  5. cmd/local-locker_gen.go

    	err = en.Append(0x89, 0xa4, 0x4e, 0x61, 0x6d, 0x65)
    	if err != nil {
    		return
    	}
    	err = en.WriteString(z.Name)
    	if err != nil {
    		err = msgp.WrapError(err, "Name")
    		return
    	}
    	// write "Writer"
    	err = en.Append(0xa6, 0x57, 0x72, 0x69, 0x74, 0x65, 0x72)
    	if err != nil {
    		return
    	}
    	err = en.WriteBool(z.Writer)
    	if err != nil {
    		err = msgp.WrapError(err, "Writer")
    		return
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jul 24 10:24:01 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  6. internal/grid/types.go

    func (b *Bytes) UnmarshalMsg(bytes []byte) ([]byte, error) {
    	if b == nil {
    		return bytes, errors.New("Bytes: UnmarshalMsg on nil pointer")
    	}
    	if bytes, err := msgp.ReadNilBytes(bytes); err == nil {
    		if *b != nil {
    			PutByteBuffer(*b)
    		}
    		*b = nil
    		return bytes, nil
    	}
    	val, bytes, err := msgp.ReadBytesZC(bytes)
    	if err != nil {
    		return bytes, err
    	}
    	if cap(*b) >= len(val) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  7. src/archive/tar/writer_test.go

    			t.Errorf("WriteHeader() = got %v, want non-nil error", err)
    		}
    		if _, err := tw.Write(nil); err == nil {
    			t.Errorf("Write() = %v, want non-nil error", err)
    		}
    		if err := tw.Flush(); err == nil {
    			t.Errorf("Flush() = %v, want non-nil error", err)
    		}
    		if err := tw.Close(); err == nil {
    			t.Errorf("Close() = %v, want non-nil error", err)
    		}
    	})
    }
    
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Sep 23 14:32:33 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  8. cmd/bucket-metadata-sys.go

    	if err != nil {
    		if errors.Is(err, errConfigNotFound) {
    			return nil, time.Time{}, BucketPolicyNotFound{Bucket: bucket}
    		}
    		return nil, time.Time{}, err
    	}
    	if meta.policyConfig == nil {
    		return nil, time.Time{}, BucketPolicyNotFound{Bucket: bucket}
    	}
    	return meta.policyConfig, meta.PolicyConfigUpdatedAt, nil
    }
    
    // GetTaggingConfig returns configured tagging config
    // The returned object may not be modified.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 28 15:32:18 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  9. internal/s3select/simdj/record.go

    	elem := r.object.FindKey(name, nil)
    	if elem == nil {
    		return nil, nil
    	}
    	return iterToValue(elem.Iter)
    }
    
    func iterToValue(iter simdjson.Iter) (*sql.Value, error) {
    	switch iter.Type() {
    	case simdjson.TypeString:
    		v, err := iter.String()
    		if err != nil {
    			return nil, err
    		}
    		return sql.FromString(v), nil
    	case simdjson.TypeFloat:
    		v, err := iter.Float()
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 23 19:35:41 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  10. cmd/data-usage-cache_gen.go

    			err = en.WriteNil()
    			if err != nil {
    				return
    			}
    		} else {
    			err = z.AllTierStats.EncodeMsg(en)
    			if err != nil {
    				err = msgp.WrapError(err, "AllTierStats")
    				return
    			}
    		}
    	}
    	// write "c"
    	err = en.Append(0xa1, 0x63)
    	if err != nil {
    		return
    	}
    	err = en.WriteBool(z.Compacted)
    	if err != nil {
    		err = msgp.WrapError(err, "Compacted")
    		return
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 75K bytes
    - Viewed (0)
Back to top