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; |
} |