func io.LimitReader
18 uses
io (current package)
io.go#L358: written, err = Copy(dst, LimitReader(src, n))
io.go#L455: func LimitReader(r Reader, n int64) Reader { return &LimitedReader{r, n} }
github.com/aws/aws-sdk-go/aws/credentials/processcreds
provider.go#L355: io.LimitReader(outReadPipe, int64(p.MaxBufSize)),
github.com/go-git/go-git/v5/plumbing/format/packfile
parser.go#L329: _, err = buf.ReadFrom(io.LimitReader(r, e.Size()))
github.com/prometheus/procfs/internal/util
readfile.go#L36: reader := io.LimitReader(f, maxBufferSize)
golang.org/x/oauth2/internal
token.go#L236: body, err := ioutil.ReadAll(io.LimitReader(r.Body, 1<<20))
golang.org/x/oauth2/jwt
jwt.go#L139: body, err := ioutil.ReadAll(io.LimitReader(resp.Body, 1<<20))
golang.org/x/pkgsite/internal/fetch
load.go#L363: b, err := ioutil.ReadAll(io.LimitReader(r, limit))
golang.org/x/pkgsite/internal/licenses
licenses.go#L570: return ioutil.ReadAll(io.LimitReader(rc, int64(maxLicenseSize)))
google.golang.org/api/googleapi
googleapi.go#L173: slurp, _ := ioutil.ReadAll(io.LimitReader(res.Body, 1<<20))
google.golang.org/api/internal/gensupport
media.go#L65: cs.start, cs.err = ioutil.ReadAll(io.LimitReader(cs.r, sniffBuffSize))
google.golang.org/api/internal/impersonate
impersonate.go#L108: body, err := ioutil.ReadAll(io.LimitReader(resp.Body, 1<<20))
google.golang.org/grpc
rpc_util.go#L688: bytesRead, err := buf.ReadFrom(io.LimitReader(dcReader, int64(maxReceiveMessageSize)+1))
rpc_util.go#L694: d, err = ioutil.ReadAll(io.LimitReader(dcReader, int64(maxReceiveMessageSize)+1))
net/http
request.go#L1205: reader = io.LimitReader(r.Body, maxFormSize+1)
transfer.go#L367: ncopy, err = t.doBodyCopy(w, io.LimitReader(body, t.ContentLength))
transfer.go#L564: t.Body = &body{src: io.LimitReader(r, realLength), closing: t.Close}
net/http/httputil
dump.go#L83: req.Body = io.NopCloser(io.LimitReader(neverEnding('x'), contentLength))
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |