Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for sortBytesInGroups (0.23 sec)

  1. src/io/pipe_test.go

    		for i := 0; i < cap(c); i++ {
    			got = append(got, (<-c)...)
    		}
    		got = sortBytesInGroups(got, readSize)
    		want := bytes.Repeat([]byte(input), count)
    		want = sortBytesInGroups(want, readSize)
    		if string(got) != string(want) {
    			t.Errorf("got: %q; want: %q", got, want)
    		}
    	})
    }
    
    func sortBytesInGroups(b []byte, n int) []byte {
    	var groups [][]byte
    	for len(b) > 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 9K bytes
    - Viewed (0)
Back to top