Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for peekSize (0.05 sec)

  1. src/bufio/bufio_test.go

    		br := NewReaderSize(tt.r, tt.bufSize)
    		if tt.peekSize > 0 {
    			peekBuf, err := br.Peek(tt.peekSize)
    			if err != nil {
    				t.Errorf("%s: Peek(%d): %v", tt.name, tt.peekSize, err)
    				continue
    			}
    			if len(peekBuf) != tt.peekSize {
    				t.Errorf("%s: len(Peek(%d)) = %v; want %v", tt.name, tt.peekSize, len(peekBuf), tt.peekSize)
    				continue
    			}
    		}
    		discarded, err := br.Discard(tt.n)
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Nov 01 21:52:12 UTC 2024
    - 51.6K bytes
    - Viewed (0)
Back to top