Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for FillBytes (0.03 sec)

  1. src/bytes/buffer_test.go

    	}
    	return s
    }
    
    // Fill buf through n writes of byte slice fub.
    // The initial contents of buf corresponds to the string s;
    // the result is the final contents of buf returned as a string.
    func fillBytes(t *testing.T, testname string, buf *Buffer, s string, n int, fub []byte) string {
    	check(t, testname+" (fill 1)", buf, s)
    	for ; n > 0; n-- {
    		m, err := buf.Write(fub)
    		if m != len(fub) {
    Registered: Tue Dec 30 11:13:12 UTC 2025
    - Last Modified: Fri Nov 14 19:01:17 UTC 2025
    - 19.4K bytes
    - Viewed (0)
Back to top