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

Unified Diff: runtime/vm/dart_api_message.h

Issue 10916207: Support receiving GrowableObjectArray on native ports (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed review commetns Created 8 years, 3 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 | « no previous file | runtime/vm/dart_api_message.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/dart_api_message.h
diff --git a/runtime/vm/dart_api_message.h b/runtime/vm/dart_api_message.h
index 2314315371adb6ae37274332725d8a6ee05a9ec7..5b131bd7a845788147ccac55a2ffdb69632cd175 100644
--- a/runtime/vm/dart_api_message.h
+++ b/runtime/vm/dart_api_message.h
@@ -27,6 +27,11 @@ struct Dart_CObject_Internal : public Dart_CObject {
// Reads a message snapshot into a C structure.
class ApiMessageReader : public BaseReader {
public:
+ // The allocator passed is used to allocate memory for the C structure used
+ // to represent the message snapshot. This allocator must keep track of the
+ // memory allocated as there is no way to run through the resulting C
+ // structure and free the individual pieces. Using a zone based allocator is
+ // recommended.
ApiMessageReader(const uint8_t* buffer, intptr_t length, ReAlloc alloc);
~ApiMessageReader() { }
« no previous file with comments | « no previous file | runtime/vm/dart_api_message.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698