google.golang.org/api/internal/gensupport.MediaBuffer.chunk (field)
14 uses
google.golang.org/api/internal/gensupport (current package)
buffer.go#L19: chunk []byte // The current chunk which is pending upload. The capacity is the chunk size.
buffer.go#L28: return &MediaBuffer{media: media, chunk: make([]byte, 0, chunkSize)}
buffer.go#L36: if mb.err == nil && len(mb.chunk) == 0 {
buffer.go#L39: return bytes.NewReader(mb.chunk), mb.off, len(mb.chunk), mb.err
buffer.go#L44: bufSize := cap(mb.chunk)
buffer.go#L45: mb.chunk = mb.chunk[:bufSize]
buffer.go#L51: n, err = mb.media.Read(mb.chunk[read:])
buffer.go#L54: mb.chunk = mb.chunk[:read]
buffer.go#L61: mb.off += int64(len(mb.chunk))
buffer.go#L62: mb.chunk = mb.chunk[0:0]
![]() |
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. |