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

Unified Diff: runtime/include/dart_api.h

Issue 8383029: Implement external strings. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address final review comments Created 9 years, 1 month 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/lib/string.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/include/dart_api.h
diff --git a/runtime/include/dart_api.h b/runtime/include/dart_api.h
index bf89f60b2ab4bba2481e54e181e196ae796d557b..3fddb54e7f781f030ab4ef0c25d7073de80f0a24 100755
--- a/runtime/include/dart_api.h
+++ b/runtime/include/dart_api.h
@@ -762,6 +762,24 @@ DART_EXPORT Dart_Handle Dart_NewString16(const uint16_t* codepoints,
DART_EXPORT Dart_Handle Dart_NewString32(const uint32_t* codepoints,
intptr_t length);
+
+typedef void (*Dart_PeerFinalizer)(void* peer);
+
+DART_EXPORT Dart_Handle Dart_NewExternalString8(const uint8_t* codepoints,
+ intptr_t length,
+ void* peer,
+ Dart_PeerFinalizer callback);
+
+DART_EXPORT Dart_Handle Dart_NewExternalString16(const uint16_t* codepoints,
+ intptr_t length,
+ void* peer,
+ Dart_PeerFinalizer callback);
+
+DART_EXPORT Dart_Handle Dart_NewExternalString32(const uint32_t* codepoints,
+ intptr_t length,
+ void* peer,
+ Dart_PeerFinalizer callback);
+
/**
* Gets the codepoints from a String.
*
« no previous file with comments | « no previous file | runtime/lib/string.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698