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

Unified Diff: runtime/vm/object.h

Issue 11362009: New APIs for external byte arrays (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed review comments Created 8 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 | « runtime/vm/dart_api_impl_test.cc ('k') | runtime/vm/raw_object.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.h
diff --git a/runtime/vm/object.h b/runtime/vm/object.h
index d79c28685965bc3fb8bb00dfb2cbdb136c7d2e4b..714ba27945b51a0f4d11f7c63ea746ee72d91247 100644
--- a/runtime/vm/object.h
+++ b/runtime/vm/object.h
@@ -4998,6 +4998,10 @@ class ExternalUint8Array : public ByteArray {
raw_ptr()->external_data_->data()[index] = value;
}
+ void* GetData() const {
+ return raw_ptr()->external_data_->data();
+ }
+
void* GetPeer() const {
return raw_ptr()->external_data_->peer();
}
« no previous file with comments | « runtime/vm/dart_api_impl_test.cc ('k') | runtime/vm/raw_object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698