Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for NewWriterSize (0.11 sec)

  1. src/bufio/bufio_test.go

    	const BufSize = 1000
    	b := NewWriterSize(new(bytes.Buffer), BufSize)
    	// Does it recognize itself?
    	b1 := NewWriterSize(b, BufSize)
    	if b1 != b {
    		t.Error("NewWriterSize did not detect underlying Writer")
    	}
    	// Does it wrap if existing buffer is too small?
    	b2 := NewWriterSize(b, 2*BufSize)
    	if b2 == b {
    		t.Error("NewWriterSize did not enlarge buffer")
    	}
    }
    
    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