Home | History | Annotate | Download | only in multipart

Lines Matching defs:Read

42 	// during Read calls.
56 total int64 // total data bytes read already
58 readErr error // read error observed from mr.bufReader
110 // stickyErrorReader is an io.Reader which never calls Read on its
113 // Read calls after an error, yet this package does do multiple Reads
120 func (r *stickyErrorReader) Read(p []byte) (n int, _ error) {
124 n, r.err = r.r.Read(p)
154 // Read reads the body of a part, after its headers and before the
156 func (p *Part) Read(d []byte) (n int, err error) {
157 return p.r.Read(d)
166 func (pr partReader) Read(d []byte) (int, error) {
170 // Read into buffer until we identify some data to return,
171 // or we find a reason to stop (boundary or read error).
176 // Force buffered I/O to read more into buffer.
184 // Read out from "data to return" part of buffer.
192 n, _ = br.Read(d[:n])
206 // total is the number of bytes read out so far. If total == 0, then a leading "--boundary" is recognized.
207 // readErr is the read error, if any, that followed reading the bytes in buf.
264 // It returns 0 more input needs to be read to make the decision,