Merge "Provide APIs to allow reusing the passed buffer."
am: 41e6a9ae91

Change-Id: I3a09b7401fbaaf8d0a982a40329c0c71cf5a3e98