| Index: runtime/platform/json.h
|
| diff --git a/runtime/platform/json.h b/runtime/platform/json.h
|
| index a793cb888d816f4a972062b5b0afe77dcac9c57a..36c7d5d123b3f1812a416efd409d4438d0590969 100644
|
| --- a/runtime/platform/json.h
|
| +++ b/runtime/platform/json.h
|
| @@ -136,6 +136,10 @@ class TextBuffer : ValueObject {
|
| char* buf() { return buf_; }
|
| intptr_t length() { return msg_len_; }
|
|
|
| + // Steal ownership of the buffer pointer.
|
| + // NOTE: TextBuffer is empty afterwards.
|
| + const char* Steal();
|
| +
|
| private:
|
| void EnsureCapacity(intptr_t len);
|
| char* buf_;
|
|
|