Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1118)

Unified Diff: runtime/platform/text_buffer.h

Issue 2254543006: Reduce copying in sending service responses. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: dbc, sync Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/vmservice/vmservice_io.dart ('k') | runtime/platform/text_buffer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/platform/text_buffer.h
diff --git a/runtime/platform/text_buffer.h b/runtime/platform/text_buffer.h
index 6155cc433d74b499954e4c1c377e2e1c1c93d3b6..973ca7ec38d8fa1db29da6d3c941ea17f3804ae9 100644
--- a/runtime/platform/text_buffer.h
+++ b/runtime/platform/text_buffer.h
@@ -34,7 +34,7 @@ class TextBuffer : ValueObject {
// Steal ownership of the buffer pointer.
// NOTE: TextBuffer is empty afterwards.
- const char* Steal();
+ char* Steal();
private:
void EnsureCapacity(intptr_t len);
« no previous file with comments | « runtime/bin/vmservice/vmservice_io.dart ('k') | runtime/platform/text_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698