[cas] Move file IO buffering deeper (#322)

* [cas] Move fie IO buffering deeper

Passing explicit []byte buffers to various functions does not guarantee
buffered reads from an io.Reader. In particular. io.CopyBuffer may
ignore the passed buffer. As a result, the file IO size might get
ignored.

Move buffering deeper by using bufio.Reader. Use it throughout.
Replace a sync.Pool of []byte with a pool of bufio.Readers.

Ungeneralize readSeekCloser since we no longer read from *os.File
directly.
4 files changed
tree: 0174a2861bd868cac5a01f2611413031c1629f80
  1. .bazelci/
  2. .githooks/
  3. external/
  4. go/
  5. .gitignore
  6. AUTHORS
  7. BUILD.bazel
  8. check-gofmt.sh
  9. CONTRIBUTING.md
  10. CONTRIBUTORS
  11. go.mod
  12. go.sum
  13. LICENSE
  14. README.md
  15. remote-apis-sdks-deps.bzl
  16. setup-githooks.sh
  17. WORKSPACE
README.md

Remote Execution API SDKs

CI status: Build Status

PkgGoDev

This repository contains SDKs for the Remote Execution API.

See each language subdirectory's README.md for more specific instructions on using the SDK for that language.