// Reader is the interface that wraps the basic Read method.
Reader is the interface that wraps the basic Read method.
// Reader is the interface that wraps the basic Read method .
func (r *testReader) Read(p []byte) (n int, err error) {
	for i := range p {
		if r.size <= 0 {
			return n, io.EOF
		}
		p[i] = r.c
		r.c = (r.c + 1) % 253
		r.size--
		n++
	}
	return
}
func ( r * testReader ) Read ( p [ ] byte ) ( n int , err error ) { for i := range p { if r . size <= 0 { return n , io . EOF } p [ i ] = r . c r . c = ( r . c + 1 ) % 253 r . size -- n ++ } return }
Reader is the interface that wraps the basic Read method.
Reader is the interface that wraps the basic Read method .