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

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

Issue 14142008: Add support for more typed data types on native ports (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed review comments 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 f4d6907fbce62bd374d1f8138577db8e94318ada..081d5322c7d9631e9d2b806b2505606301886be9 100644
--- a/sdk/lib/io/common.dart
+++ b/sdk/lib/io/common.dart
@@ -72,6 +72,8 @@ _BufferAndOffset _ensureFastAndSerializableBuffer(
List buffer, int offset, int bytes) {
if (buffer is Uint8List ||
buffer is Int8List ||
+ buffer is Uint16List ||
+ buffer is Int16List ||
_BufferUtils._isBuiltinList(buffer)) {
return new _BufferAndOffset(buffer, offset);
}

Powered by Google App Engine
This is Rietveld 408576698