Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for empty (0.15 sec)

  1. src/bytes/reader.go

    // io.ByteScanner, and io.RuneScanner interfaces by reading from
    // a byte slice.
    // Unlike a [Buffer], a Reader is read-only and supports seeking.
    // The zero value for Reader operates like a Reader of an empty slice.
    type Reader struct {
    	s        []byte
    	i        int64 // current reading index
    	prevRune int   // index of previous rune; or < 0
    }
    
    // Len returns the number of bytes of the unread portion of the
    // slice.
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Oct 13 17:10:31 GMT 2023
    - 3.9K bytes
    - Viewed (0)
  2. src/archive/tar/reader.go

    	for {
    		for i := 0; i < s.maxEntries(); i++ {
    			// This termination condition is identical to GNU and BSD tar.
    			if s.entry(i).offset()[0] == 0x00 {
    				break // Don't return, need to process extended headers (even if empty)
    			}
    			offset := p.parseNumeric(s.entry(i).offset())
    			length := p.parseNumeric(s.entry(i).length())
    			if p.err != nil {
    				return nil, p.err
    			}
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Mar 08 01:59:14 GMT 2024
    - 26.8K bytes
    - Viewed (0)
  3. internal/hash/reader.go

    // of the read content as ETag. Optionally, it also computes
    // the SHA256 checksum of the content.
    //
    // If the reference values for the ETag and content SHA26
    // are not empty then it will check whether the computed
    // match the reference values.
    type Reader struct {
    	src         io.Reader
    	bytesRead   int64
    	expectedMin int64
    	expectedMax int64
    
    	size       int64
    	actualSize int64
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Sep 18 17:00:54 GMT 2023
    - 10.8K bytes
    - Viewed (0)
  4. internal/s3select/csv/reader.go

    	}
    	return nil
    }
    
    // NewReader - creates new CSV reader using readCloser.
    func NewReader(readCloser io.ReadCloser, args *ReaderArgs) (*Reader, error) {
    	if args == nil || args.IsEmpty() {
    		panic(fmt.Errorf("empty args passed %v", args))
    	}
    	csvIn := io.Reader(readCloser)
    	if args.RecordDelimiter != "\n" {
    		csvIn = &recordTransform{
    			reader:          readCloser,
    			recordDelimiter: []byte(args.RecordDelimiter),
    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)
  5. src/archive/zip/reader.go

    		// the wrong number of directory entries.
    		return err
    	}
    	if zipinsecurepath.Value() == "0" {
    		for _, f := range r.File {
    			if f.Name == "" {
    				// Zip permits an empty file name field.
    				continue
    			}
    			// The zip specification states that names must use forward slashes,
    			// so consider any backslashes in the name insecure.
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 27.7K bytes
    - Viewed (0)
Back to top