/prebuilts/go/darwin-x86/src/image/jpeg/ |
reader_test.go | 96 data []byte // deliver from Read without EOF 97 dataEOF []byte // then deliver from Read with EOF on last chunk 101 func (r *eofReader) Read(b []byte) (n int, err error) { 130 t.Errorf("Decode with Read() = %d, EOF: %v", r.lenAtEOF, err)
|
/prebuilts/go/darwin-x86/src/index/suffixarray/ |
suffixarray.go | 46 // readInt reads an int x from r using buf to buffer the read and returns x. 71 // It uses buf to buffer the read. 73 // read buffer size 80 // read buffer w/o the size 97 // Read reads the index from r into x; x must not be nil. 98 func (x *Index) Read(r io.Reader) error { 102 // read length 120 // read data 125 // read index
|
/prebuilts/go/darwin-x86/src/internal/race/ |
norace.go | 30 func Read(addr unsafe.Pointer) {
|
race.go | 36 func Read(addr unsafe.Pointer) {
|
/prebuilts/go/darwin-x86/src/mime/multipart/ |
formdata_test.go | 139 // It fails t if any Read is called after a failing Read. 146 func (r *failOnReadAfterErrorReader) Read(p []byte) (n int, err error) { 148 r.t.Fatalf("unexpected Read on Reader after previous read saw error %v", r.sawErr) 150 n, err = r.r.Read(p)
|
/prebuilts/go/darwin-x86/src/net/http/cgi/ |
matryoshka_test.go | 177 func (b neverEnding) Read(p []byte) (n int, err error) {
|
/prebuilts/go/darwin-x86/src/net/http/httputil/ |
persist.go | 38 mu sync.Mutex // read-write protects the following fields 41 re, we error // read/write errors 62 // as the read-side bufio which may have some left over data. Hijack may be 63 // called before Read has signaled the end of the keep-alive logic. The user 64 // should not call Hijack while Read or Write is in progress. 84 // Read returns the next request on the wire. An ErrPersistEOF is returned if 88 func (sc *ServerConn) Read() (*http.Request, error) { 174 // it returns an error, regardless of any errors returned on the Read side. 231 mu sync.Mutex // read-write protects the following fields 234 re, we error // read/write error [all...] |
/prebuilts/go/darwin-x86/src/strings/ |
reader.go | 37 func (r *Reader) Read(b []byte) (n int, err error) { 149 // It is similar to bytes.NewBufferString but more efficient and read-only.
|
/prebuilts/go/darwin-x86/src/testing/iotest/ |
reader.go | 14 // each non-empty Read by reading one byte from r. 21 func (r *oneByteReader) Read(p []byte) (int, error) { 25 return r.r.Read(p[0:1]) 28 // HalfReader returns a Reader that implements Read 36 func (r *halfReader) Read(p []byte) (int, error) { 37 return r.r.Read(p[0 : (len(p)+1)/2]) 41 // Reader returns an error (typically EOF) from the first Read call after the 42 // last piece of data is read. DataErrReader wraps a Reader and changes its 53 func (r *dataErrReader) Read(p []byte) (n int, err error) { 58 n1, err1 := r.r.Read(r.data [all...] |
/prebuilts/go/linux-x86/src/bytes/ |
reader.go | 16 // Unlike a Buffer, a Reader is read-only and supports seeking. 38 // Read implements the io.Reader interface. 39 func (r *Reader) Read(b []byte) (n int, err error) {
|
/prebuilts/go/linux-x86/src/cmd/compile/internal/syntax/ |
syntax.go | 92 func (r *bytesReader) Read(p []byte) (int, error) {
|
/prebuilts/go/linux-x86/src/compress/lzw/ |
reader.go | 52 read func(*decoder) (uint16, error) // readLSB or readMSB 87 toRead []byte // bytes to return from Read 122 func (d *decoder) Read(b []byte) (int, error) { 137 // read specifies how to decode bytes into codes. 143 code, err := d.read(d) 231 // Reads from the returned io.ReadCloser read and decompress data from r. 233 // the decompressor may read more data than necessary from r. 243 d.read = (*decoder).readLSB 245 d.read = (*decoder).readMSB
|
/prebuilts/go/linux-x86/src/compress/zlib/ |
reader.go | 18 and to read that data back: 64 // Reads from the returned ReadCloser read and decompress data from r. 65 // If r does not implement io.ByteReader, the decompressor may read more 88 func (z *reader) Read(p []byte) (int, error) { 94 n, z.err = z.decompressor.Read(p) 137 // Read the header (RFC 1950 section 2.2.).
|
/prebuilts/go/linux-x86/src/crypto/rand/ |
util_test.go | 56 func (r *countingReader) Read(p []byte) (n int, err error) { 57 n, err = r.r.Read(p) 76 t.Errorf("Int(reader, %d) should read %d bytes, but it read: %d", max, expected, reader.n)
|
/prebuilts/go/linux-x86/src/crypto/tls/ |
handshake_test.go | 97 func (r *recordingConn) Read(b []byte) (n int, err error) { 98 if n, err = r.Conn.Read(b); n == 0 {
|
/prebuilts/go/linux-x86/src/encoding/ascii85/ |
ascii85.go | 258 func (d *decoder) Read(p []byte) (n int, err error) { 274 // Decode leftover input from last read. 306 // Read more data. 307 nn, d.readErr = d.r.Read(d.buf[d.nbuf:])
|
/prebuilts/go/linux-x86/src/encoding/csv/ |
reader_test.go | 320 // The implementation may read each line in several chunks if it doesn't fit entirely 321 // in the read buffer, so we should test the code to handle that condition. 417 func (r *nTimes) Read(p []byte) (n int, err error) { 445 _, err := r.Read()
|
/prebuilts/go/linux-x86/src/image/jpeg/ |
reader_test.go | 96 data []byte // deliver from Read without EOF 97 dataEOF []byte // then deliver from Read with EOF on last chunk 101 func (r *eofReader) Read(b []byte) (n int, err error) { 130 t.Errorf("Decode with Read() = %d, EOF: %v", r.lenAtEOF, err)
|
/prebuilts/go/linux-x86/src/index/suffixarray/ |
suffixarray.go | 46 // readInt reads an int x from r using buf to buffer the read and returns x. 71 // It uses buf to buffer the read. 73 // read buffer size 80 // read buffer w/o the size 97 // Read reads the index from r into x; x must not be nil. 98 func (x *Index) Read(r io.Reader) error { 102 // read length 120 // read data 125 // read index
|
/prebuilts/go/linux-x86/src/internal/race/ |
norace.go | 30 func Read(addr unsafe.Pointer) {
|
race.go | 36 func Read(addr unsafe.Pointer) {
|
/prebuilts/go/linux-x86/src/mime/multipart/ |
formdata_test.go | 139 // It fails t if any Read is called after a failing Read. 146 func (r *failOnReadAfterErrorReader) Read(p []byte) (n int, err error) { 148 r.t.Fatalf("unexpected Read on Reader after previous read saw error %v", r.sawErr) 150 n, err = r.r.Read(p)
|
/prebuilts/go/linux-x86/src/net/http/cgi/ |
matryoshka_test.go | 177 func (b neverEnding) Read(p []byte) (n int, err error) {
|
/prebuilts/go/linux-x86/src/net/http/httputil/ |
persist.go | 38 mu sync.Mutex // read-write protects the following fields 41 re, we error // read/write errors 62 // as the read-side bufio which may have some left over data. Hijack may be 63 // called before Read has signaled the end of the keep-alive logic. The user 64 // should not call Hijack while Read or Write is in progress. 84 // Read returns the next request on the wire. An ErrPersistEOF is returned if 88 func (sc *ServerConn) Read() (*http.Request, error) { 174 // it returns an error, regardless of any errors returned on the Read side. 231 mu sync.Mutex // read-write protects the following fields 234 re, we error // read/write error [all...] |
/prebuilts/go/linux-x86/src/strings/ |
reader.go | 37 func (r *Reader) Read(b []byte) (n int, err error) { 149 // It is similar to bytes.NewBufferString but more efficient and read-only.
|