diff options
Diffstat (limited to 'tools/aapt2/io/Util.cpp')
-rw-r--r-- | tools/aapt2/io/Util.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/aapt2/io/Util.cpp b/tools/aapt2/io/Util.cpp index 15114e8dbf54..d270340a180c 100644 --- a/tools/aapt2/io/Util.cpp +++ b/tools/aapt2/io/Util.cpp @@ -18,6 +18,8 @@ #include "google/protobuf/io/zero_copy_stream_impl_lite.h" +using ::google::protobuf::io::ZeroCopyOutputStream; + namespace aapt { namespace io { @@ -91,5 +93,10 @@ bool Copy(OutputStream* out, InputStream* in) { return !in->HadError(); } +bool Copy(ZeroCopyOutputStream* out, InputStream* in) { + OutputStreamAdaptor adaptor(out); + return Copy(&adaptor, in); +} + } // namespace io } // namespace aapt |