Index: runtime/vm/json_stream.cc |
diff --git a/runtime/vm/json_stream.cc b/runtime/vm/json_stream.cc |
index 0b5a41fba3e0e6cfb0fa3ed0f2a71fcb0ec63968..a4e5ad21815bf2758d3cccf77de3b017e5e3bd34 100644 |
--- a/runtime/vm/json_stream.cc |
+++ b/runtime/vm/json_stream.cc |
@@ -534,6 +534,14 @@ void JSONStream::PrintfProperty(const char* name, const char* format, ...) { |
} |
+void JSONStream::Steal(const char** buffer, intptr_t* buffer_length) { |
+ ASSERT(buffer != NULL); |
+ ASSERT(buffer_length != NULL); |
+ *buffer_length = buffer_.length(); |
+ *buffer = buffer_.Steal(); |
+} |
+ |
+ |
void JSONStream::set_reply_port(Dart_Port port) { |
reply_port_ = port; |
} |