Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for Case (0.23 sec)

  1. internal/s3select/parquet/reader.go

    				var duration time.Duration
    				// Only support UTC normalized timestamps.
    				if ts.IsAdjustedToUTC {
    					switch {
    					case ts.Unit.IsSetNANOS():
    						duration = time.Duration(val) * time.Nanosecond
    					case ts.Unit.IsSetMILLIS():
    						duration = time.Duration(val) * time.Millisecond
    					case ts.Unit.IsSetMICROS():
    						duration = time.Duration(val) * time.Microsecond
    					default:
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 14 13:54:47 GMT 2022
    - 4.5K bytes
    - Viewed (0)
  2. src/bytes/reader.go

    }
    
    // Seek implements the [io.Seeker] interface.
    func (r *Reader) Seek(offset int64, whence int) (int64, error) {
    	r.prevRune = -1
    	var abs int64
    	switch whence {
    	case io.SeekStart:
    		abs = offset
    	case io.SeekCurrent:
    		abs = r.i + offset
    	case io.SeekEnd:
    		abs = int64(len(r.s)) + offset
    	default:
    		return 0, errors.New("bytes.Reader.Seek: invalid whence")
    	}
    	if abs < 0 {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 17:10:31 GMT 2023
    - 3.9K bytes
    - Viewed (0)
  3. src/archive/tar/reader.go

    		}
    		var id64 int64
    		switch k {
    		case paxPath:
    			hdr.Name = v
    		case paxLinkpath:
    			hdr.Linkname = v
    		case paxUname:
    			hdr.Uname = v
    		case paxGname:
    			hdr.Gname = v
    		case paxUid:
    			id64, err = strconv.ParseInt(v, 10, 64)
    			hdr.Uid = int(id64) // Integer overflow possible
    		case paxGid:
    			id64, err = strconv.ParseInt(v, 10, 64)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 08 01:59:14 GMT 2024
    - 26.8K bytes
    - Viewed (0)
  4. internal/s3select/simdj/reader.go

    func (r *Reader) startReader() {
    	defer r.onReaderExit()
    	var tmpObj simdjson.Object
    	for {
    		var in simdjson.Stream
    		select {
    		case in = <-r.input:
    		case <-r.exitReader:
    			return
    		}
    		if in.Error != nil && in.Error != io.EOF {
    			r.err = &in.Error
    			return
    		}
    		if in.Value == nil {
    			if in.Error == io.EOF {
    				return
    			}
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue May 30 17:02:22 GMT 2023
    - 4.9K bytes
    - Viewed (0)
  5. internal/s3select/csv/reader.go

    		for {
    			q := queueItem{
    				input: next,
    				dst:   make(chan [][]string, 1),
    				err:   nextErr,
    			}
    			select {
    			case <-r.close:
    				return
    			case r.queue <- &q:
    			}
    
    			select {
    			case <-r.close:
    				return
    			case r.input <- &q:
    			}
    			if nextErr != nil {
    				// Exit on any error.
    				return
    			}
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 8.9K bytes
    - Viewed (0)
  6. src/archive/zip/reader.go

    	// Determine the character encoding.
    	utf8Valid1, utf8Require1 := detectUTF8(f.Name)
    	utf8Valid2, utf8Require2 := detectUTF8(f.Comment)
    	switch {
    	case !utf8Valid1 || !utf8Valid2:
    		// Name and Comment definitely not UTF-8.
    		f.NonUTF8 = true
    	case !utf8Require1 && !utf8Require2:
    		// Name and Comment use only single-byte runes that overlap with UTF-8.
    		f.NonUTF8 = false
    	default:
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 27.7K bytes
    - Viewed (0)
Back to top