commit | b4a0e12d87c946ced360d723d743be1f57a47995 | [log] [tgz] |
---|---|---|
author | nodirg <56001730+nodirg@users.noreply.github.com> | Thu Apr 29 14:18:31 2021 -0700 |
committer | GitHub <noreply@github.com> | Thu Apr 29 14:18:31 2021 -0700 |
tree | 0174a2861bd868cac5a01f2611413031c1629f80 | |
parent | b1b54ee4d55b5d5bd71ca2df4353058515581697 [diff] |
[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.
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.