commit | 2f310f6d5d352817f42384394b50a660ad6e0bf8 | [log] [tgz] |
---|---|---|
author | Daichi Hirono <hirono@google.com> | Wed Jan 27 12:34:29 2016 +0900 |
committer | Daichi Hirono <hirono@google.com> | Thu Jan 28 14:09:26 2016 +0900 |
tree | 0ca47d05e81949f6443b3a5d30c2eb747506dcd3 | |
parent | 5012919bc3a75d1de972d29f70ae4a493f3493ed [diff] |
Reuse buffer when reading bytes from files. Previously AppFuse getObjectBytes returns byte array and the array's length needs to equals to the exact number of bytes the method read. The CL change the function signature so that it can return the number of read bytes. And reuse a buffer array instead of slicing the array with valid length. BUG=None Change-Id: I78b714554cac9ae71b895cb8929bc98969f5a8ca