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

Unified Diff: sdk/lib/io/common.dart

Issue 13998008: Add support for even more typed data on native ports (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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
Index: sdk/lib/io/common.dart
diff --git a/sdk/lib/io/common.dart b/sdk/lib/io/common.dart
index 081d5322c7d9631e9d2b806b2505606301886be9..c4ebbf8226658a241eaef0d791a32693545a41c4 100644
--- a/sdk/lib/io/common.dart
+++ b/sdk/lib/io/common.dart
@@ -74,6 +74,13 @@ _BufferAndOffset _ensureFastAndSerializableBuffer(
buffer is Int8List ||
buffer is Uint16List ||
buffer is Int16List ||
+ buffer is Uint32List ||
+ buffer is Int32List ||
+ buffer is Uint64List ||
+ buffer is Int64List ||
+ buffer is ByteData ||
+ buffer is Float32List ||
+ buffer is Float64List ||
_BufferUtils._isBuiltinList(buffer)) {
return new _BufferAndOffset(buffer, offset);
}

Powered by Google App Engine
This is Rietveld 408576698