- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for OneByteReader (0.22 sec)
-
src/bufio/bufio_test.go
} } type readMaker struct { name string fn func(io.Reader) io.Reader } var readMakers = []readMaker{ {"full", func(r io.Reader) io.Reader { return r }}, {"byte", iotest.OneByteReader}, {"half", iotest.HalfReader}, {"data+err", iotest.DataErrReader}, {"timeout", iotest.TimeoutReader}, } // Call ReadString (which ends up calling everything else) // to accumulate the text of a file.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 10 18:56:01 UTC 2023 - 51.5K bytes - Viewed (0) -
src/math/rand/v2/chacha8_test.go
t.Errorf("transcript incorrect: got %x, want %x", got, chacha8hash) } p.Seed(chacha8seed) h.Reset() buf = make([]byte, chacha8outlen) if _, err := io.ReadFull(iotest.OneByteReader(p), buf); err != nil { t.Errorf("one byte reads: %v", err) } h.Write(buf) if got := h.Sum(nil); !bytes.Equal(got, chacha8hash) { t.Errorf("transcript incorrect (one byte reads): got %x, want %x", got, chacha8hash)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 22:09:08 UTC 2024 - 55K bytes - Viewed (0)