summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorDaichi Hirono <hirono@google.com>2016-01-27 12:34:29 +0900
committerDaichi Hirono <hirono@google.com>2016-01-28 14:09:26 +0900
commit2f310f6d5d352817f42384394b50a660ad6e0bf8 (patch)
tree0ca47d05e81949f6443b3a5d30c2eb747506dcd3 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent5012919bc3a75d1de972d29f70ae4a493f3493ed (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
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions