Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for readerFromOK (0.36 sec)

  1. src/bufio/bufio.go

    func (b *Writer) ReadFrom(r io.Reader) (n int64, err error) {
    	if b.err != nil {
    		return 0, b.err
    	}
    	readerFrom, readerFromOK := b.wr.(io.ReaderFrom)
    	var m int
    	for {
    		if b.Available() == 0 {
    			if err1 := b.Flush(); err1 != nil {
    				return n, err1
    			}
    		}
    		if readerFromOK && b.Buffered() == 0 {
    			nn, err := readerFrom.ReadFrom(r)
    			b.err = err
    			n += nn
    			return n, err
    		}
    		nr := 0
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Oct 12 14:39:08 UTC 2023
    - 21.8K bytes
    - Viewed (0)
Back to top