Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 240 for Nil (0.06 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. cmd/data-usage-cache_gen_test.go

    	v := allTierStats{}
    	bts, err := v.MarshalMsg(nil)
    	if err != nil {
    		t.Fatal(err)
    	}
    	left, err := v.UnmarshalMsg(bts)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if len(left) > 0 {
    		t.Errorf("%d bytes left over after UnmarshalMsg(): %q", len(left), left)
    	}
    
    	left, err = msgp.Skip(bts)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if len(left) > 0 {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 04 22:23:33 UTC 2024
    - 19K bytes
    - Viewed (0)
  8. cmd/ftp-server-driver.go

    	if bucket == "" {
    		return 0, nil, errors.New("bucket name cannot be empty")
    	}
    
    	clnt, err := driver.getMinIOClient(ctx)
    	if err != nil {
    		return 0, nil, err
    	}
    
    	opts := minio.GetObjectOptions{}
    	obj, err := clnt.GetObject(context.Background(), bucket, object, opts)
    	if err != nil {
    		return 0, nil, err
    	}
    	defer func() {
    		if err != nil && obj != nil {
    			obj.Close()
    		}
    	}()
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 14K bytes
    - Viewed (0)
  9. cmd/storage-rest-client.go

    	buf, err := rp.MarshalMsg(nil)
    	if err != nil {
    		return nil, err
    	}
    
    	respBody, err := client.call(ctx, storageRESTMethodReadParts, values, bytes.NewReader(buf), -1)
    	defer xhttp.DrainBody(respBody)
    	if err != nil {
    		return nil, err
    	}
    
    	respReader, err := waitForHTTPResponse(respBody)
    	if err != nil {
    		return nil, toStorageErr(err)
    	}
    
    	rd := msgpNewReader(respReader)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Oct 13 13:07:21 UTC 2024
    - 30.2K bytes
    - Viewed (0)
  10. cmd/naughty-disk_test.go

    		return nil, err
    	}
    	return d.disk.ListVols(ctx)
    }
    
    func (d *naughtyDisk) StatVol(ctx context.Context, volume string) (vol VolInfo, err error) {
    	if err := d.calcError(); err != nil {
    		return VolInfo{}, err
    	}
    	return d.disk.StatVol(ctx, volume)
    }
    
    func (d *naughtyDisk) DeleteVol(ctx context.Context, volume string, forceDelete bool) (err error) {
    	if err := d.calcError(); err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Aug 12 08:38:15 UTC 2024
    - 10.1K bytes
    - Viewed (0)
Back to top