Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for weekStart (0.15 sec)

  1. internal/s3select/select.go

    func (s3Select *S3Select) Open(rsc io.ReadSeekCloser) error {
    	offset, length, err := s3Select.ScanRange.StartLen()
    	if err != nil {
    		return err
    	}
    	seekDirection := io.SeekStart
    	if offset < 0 {
    		seekDirection = io.SeekEnd
    	}
    	switch s3Select.Input.format {
    	case csvFormat:
    		_, err = rsc.Seek(offset, seekDirection)
    		if err != nil {
    			return err
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 22 00:33:43 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  2. src/bufio/bufio_test.go

    	buf := NewReader(r)
    	allocs := testing.AllocsPerRun(100, func() {
    		r.Seek(0, io.SeekStart)
    		buf.Reset(r)
    
    		_, err := buf.ReadString('\n')
    		if err != nil {
    			t.Fatal(err)
    		}
    	})
    	if allocs != 1 {
    		t.Errorf("Unexpected number of allocations, got %f, want 1", allocs)
    	}
    }
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Nov 01 21:52:12 UTC 2024
    - 51.6K bytes
    - Viewed (0)
  3. cmd/server-main.go

    		for _, list := range cfV1.Pools {
    			pools = append(pools, poolArgs{
    				args:          list,
    				setDriveCount: setDriveCount,
    			})
    		}
    	case "v2":
    		cf := config.ServerConfig{}
    		cfReader.Seek(0, io.SeekStart)
    		if err = yaml.Unmarshal(rd, &cf); err != nil {
    			return err
    		}
    
    		pools = make([]poolArgs, 0, len(cf.Pools))
    		for _, list := range cf.Pools {
    			driveCount := list.SetDriveCount
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 24 21:50:11 UTC 2024
    - 35.2K bytes
    - Viewed (1)
  4. cmd/xl-storage.go

    		// Expected size cannot be satisfied for
    		// requested offset and length
    		file.Close()
    		return nil, errFileCorrupt
    	}
    
    	if offset > 0 {
    		if _, err = file.Seek(offset, io.SeekStart); err != nil {
    			file.Close()
    			return nil, err
    		}
    	}
    	return &sendFileReader{Reader: io.LimitReader(file, length), Closer: file}, nil
    }
    
    // CreateFile - creates the file.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:58:27 UTC 2024
    - 91.3K bytes
    - Viewed (0)
Back to top