Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for Finished (0.42 sec)

  1. src/bufio/scan.go

    	err          error     // Sticky error.
    	empties      int       // Count of successive empty tokens.
    	scanCalled   bool      // Scan has been called; buffer is in use.
    	done         bool      // Scan has finished.
    }
    
    // SplitFunc is the signature of the split function used to tokenize the
    // input. The arguments are an initial substring of the remaining unprocessed
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Oct 23 09:06:30 GMT 2023
    - 14.2K bytes
    - Viewed (0)
  2. src/archive/tar/reader.go

    	sp  sparseHoles // Normalized list of sparse holes
    	pos int64       // Current position in sparse file
    }
    
    func (sr *sparseFileReader) Read(b []byte) (n int, err error) {
    	finished := int64(len(b)) >= sr.logicalRemaining()
    	if finished {
    		b = b[:sr.logicalRemaining()]
    	}
    
    	b0 := b
    	endPos := sr.pos + int64(len(b))
    	for endPos > sr.pos && err == nil {
    		var nf int // Bytes read in fragment
    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)
  3. doc/go1.17_spec.html

    </li>
    </ul>
    
    <p>
    For example, given the declarations
    </p>
    
    <pre>
    var (
    	a = c + b  // == 9
    	b = f()    // == 4
    	c = f()    // == 5
    	d = 3      // == 5 after initialization has finished
    )
    
    func f() int {
    	d++
    	return d
    }
    </pre>
    
    <p>
    the initialization order is <code>d</code>, <code>b</code>, <code>c</code>, <code>a</code>.
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  4. doc/go_spec.html

    <code>string</code> takes the place of <code>P</code>.
    And since <code>string</code> is identical to <code>string</code>,
    this unification step succeeds as well.
    Unification of the LHS and RHS of the equation is now finished.
    Type inference succeeds because there is only one type equation,
    no unification step failed, and the map is fully populated.
    </p>
    
    <p>
    Unification uses a combination of <i>exact</i> and <i>loose</i>
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu May 02 22:43:51 GMT 2024
    - 279.6K bytes
    - Viewed (0)
  5. src/archive/tar/writer.go

    func NewWriter(w io.Writer) *Writer {
    	return &Writer{w: w, curr: &regFileWriter{w, 0}}
    }
    
    type fileWriter interface {
    	io.Writer
    	fileState
    
    	ReadFrom(io.Reader) (int64, error)
    }
    
    // Flush finishes writing the current file's block padding.
    // The current file must be fully written before Flush can be called.
    //
    // This is unnecessary as the next call to [Writer.WriteHeader] or [Writer.Close]
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 19.6K bytes
    - Viewed (0)
  6. src/bufio/scan_test.go

    	for scanner.Scan() {
    		t.Fatal("read should fail")
    	}
    	err := scanner.Err()
    	if err != io.ErrUnexpectedEOF {
    		t.Errorf("unexpected error: %v", err)
    	}
    }
    
    // Test that Scan finishes if we have endless empty reads.
    type endlessZeros struct{}
    
    func (endlessZeros) Read(p []byte) (int, error) {
    	return 0, nil
    }
    
    func TestBadReader(t *testing.T) {
    	scanner := NewScanner(endlessZeros{})
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Sep 22 16:22:42 GMT 2023
    - 14.3K bytes
    - Viewed (0)
  7. src/archive/zip/writer.go

    func (w *Writer) SetComment(comment string) error {
    	if len(comment) > uint16max {
    		return errors.New("zip: Writer.Comment too long")
    	}
    	w.comment = comment
    	return nil
    }
    
    // Close finishes writing the zip file by writing the central directory.
    // It does not close the underlying writer.
    func (w *Writer) Close() error {
    	if w.last != nil && !w.last.closed {
    		if err := w.last.close(); err != nil {
    			return err
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 04 14:28:57 GMT 2024
    - 19.3K bytes
    - Viewed (0)
Back to top