Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for newRot13Reader (0.06 sec)

  1. src/bufio/bufio_test.go

    	"math/rand"
    	"strconv"
    	"strings"
    	"testing"
    	"testing/iotest"
    	"time"
    	"unicode/utf8"
    )
    
    // Reads from a reader and rot13s the result.
    type rot13Reader struct {
    	r io.Reader
    }
    
    func newRot13Reader(r io.Reader) *rot13Reader {
    	r13 := new(rot13Reader)
    	r13.r = r
    	return r13
    }
    
    func (r13 *rot13Reader) Read(p []byte) (int, error) {
    	n, err := r13.r.Read(p)
    	for i := 0; i < n; i++ {
    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