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

Unified Diff: bin/secure_socket.cc

Issue 12255018: Add typed data interface to Dart API, this only changes the C++ API as dicussed in a previous email… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 7 years, 10 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 | « bin/io_buffer.cc ('k') | bin/socket.cc » ('j') | include/dart_api.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bin/secure_socket.cc
===================================================================
--- bin/secure_socket.cc (revision 18484)
+++ bin/secure_socket.cc (working copy)
@@ -312,7 +312,7 @@
Dart_NewPersistentHandle(Dart_ListGetAt(dart_buffers_object, i)));
buffers_[i] = new uint8_t[size];
Dart_Handle data = ThrowIfError(
- Dart_NewExternalByteArray(buffers_[i], size, NULL, NULL));
+ Dart_NewExternalTypedData(buffers_[i], kUint8, size, NULL, NULL));
ThrowIfError(Dart_SetField(dart_buffer_objects_[i],
data_identifier,
data));
« no previous file with comments | « bin/io_buffer.cc ('k') | bin/socket.cc » ('j') | include/dart_api.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698