This site requires javascript.
Read\(\w+\s\[\]byte\)
search
close
info_outline
Events
Projects
Programs and Services
Documentation
About
Blog
more_vert
Results 1 - 10 of 153
content_copy
Search scoped to repository:
go
close
Remove Scope
Search Result Root
go/go
keyboard_arrow_right
Branch
Branch
master
keyboard_arrow_right
Search Result Path
src/bytes/
reader.go
content_copy
Preview
38:
39:
40:
// Read implements the [io.Reader] interface.
func
(r *Reader)
Read(b []byte)
(n int, err error) {
if
r.i >= int64(len(r.s)) {
Search Result Root
go/go
keyboard_arrow_right
Branch
Branch
master
keyboard_arrow_right
Search Result Path
src/bytes/
buffer_test.go
content_copy
Preview
286:
287:
func
(r panicReader)
Read(p []byte)
(int, error) {
if
r.panic {
Search Result Root
go/go
keyboard_arrow_right
Branch
Branch
master
keyboard_arrow_right
Search Result Path
src/bytes/
buffer.go
content_copy
Preview
323:
324:
325:
// otherwise it is nil.
func
(b *Buffer)
Read(p []byte)
(n int, err error) {
b.lastRead = opInvalid
Search Result Root
go/go
keyboard_arrow_right
Branch
Branch
master
keyboard_arrow_right
Search Result Path
src/testing/iotest/
reader.go
content_copy
Preview
23:
24:
func
(r *oneByteReader)
Read(p []byte)
(int, error) {
if
len(p) ==
0
{
38:
39:
func
(r *halfReader)
Read(p []byte)
(int, error) {
return
r.r.Read(p[
0
: (len(p)+
1
)/
2
])
55:
56:
func
(r *dataErrReader)
Read(p []byte)
(n int, err error) {
// loop because first call needs two reads:
85:
86:
func
(r *timeoutReader)
Read(p []byte)
(int, error) {
r.count++
102:
103:
func
(r *errReader)
Read(p []byte)
(int, error) {
return
0
, r.err
unfold_more
Show 1 more matching line
Search Result Root
go/go
keyboard_arrow_right
Branch
Branch
master
keyboard_arrow_right
Search Result Path
src/net/textproto/
reader.go
content_copy
Preview
339:
340:
341:
// Read satisfies reads by decoding dot-encoded data read from d.r.
func
(d *dotReader)
Read(b []byte)
(n int, err error) {
// Run data through a simple state machine to
Search Result Root
go/go
keyboard_arrow_right
Branch
Branch
master
keyboard_arrow_right
Search Result Path
src/image/jpeg/
reader_test.go
content_copy
Preview
102:
103:
func
(r *eofReader)
Read(b []byte)
(n int, err error) {
if
len(r.data) >
0
{
Search Result Root
go/go
keyboard_arrow_right
Branch
Branch
master
keyboard_arrow_right
Search Result Path
src/internal/coverage/slicereader/
slicereader.go
content_copy
Preview
32:
33:
func
(r *Reader)
Read(b []byte)
(int, error) {
amt := len(b)
Search Result Root
go/go
keyboard_arrow_right
Branch
Branch
master
keyboard_arrow_right
Search Result Path
src/archive/tar/
reader_test.go
content_copy
Preview
1352:
1353:
func
(r testNonEmptyReader)
Read(b []byte)
(int, error) {
if
len(b) ==
0
{
Search Result Root
go/go
keyboard_arrow_right
Branch
Branch
master
keyboard_arrow_right
Search Result Path
src/strings/
reader.go
content_copy
Preview
38:
39:
40:
// Read implements the [io.Reader] interface.
func
(r *Reader)
Read(b []byte)
(n int, err error) {
if
r.i >= int64(len(r.s)) {
Search Result Root
go/go
keyboard_arrow_right
Branch
Branch
master
keyboard_arrow_right
Search Result Path
src/compress/lzw/
reader_test.go
content_copy
Preview
172:
173:
func
(devZero)
Read(p []byte)
(int, error) {
clear(p)
chevron_left
1
2
3
4
5
chevron_right
Results per page
10
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Got it
Help
Run the search again without filtering by scope
Open branch master