Implement ReadAll(SharedFD, std::string*)

This allows reading the full contents of a SharedFD into a string. It
assumes that while the ReadAll function is running, the given SharedFD
will close.

Test: N/A
Bug: 137304531
Change-Id: I60935e7d5daed07cd484a2d207ebd34347fe9a52
3 files changed
tree: 65feca394d107e3d6a78f116134d78e02099cd0a
  1. common/
  2. guest/
  3. host/
  4. tests/
  5. tools/
  6. Android.bp
  7. Android.mk
  8. OWNERS
  9. TEST_MAPPING