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

Unified Diff: runtime/bin/file.cc

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
« no previous file with comments | « no previous file | runtime/include/dart_api.h » ('j') | sdk/lib/io/file_impl.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/file.cc
diff --git a/runtime/bin/file.cc b/runtime/bin/file.cc
index 2b1151a360b845e902f68d30b4bb2a4d232e9c92..4814ae74b17c2d11828f7423cdc2c93a2cc39ccc 100644
--- a/runtime/bin/file.cc
+++ b/runtime/bin/file.cc
@@ -969,10 +969,19 @@ static int SizeInBytes(Dart_CObject::TypedDataType type) {
switch (type) {
case Dart_CObject::kInt8Array:
case Dart_CObject::kUint8Array:
+ case Dart_CObject::kUint8ClampedArray:
return 1;
case Dart_CObject::kInt16Array:
case Dart_CObject::kUint16Array:
return 2;
+ case Dart_CObject::kInt32Array:
+ case Dart_CObject::kUint32Array:
+ case Dart_CObject::kFloat32Array:
+ return 4;
+ case Dart_CObject::kInt64Array:
+ case Dart_CObject::kUint64Array:
+ case Dart_CObject::kFloat64Array:
+ return 8;
default:
break;
}
« no previous file with comments | « no previous file | runtime/include/dart_api.h » ('j') | sdk/lib/io/file_impl.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698