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

Unified Diff: runtime/lib/typed_data.dart

Issue 58943002: Add missing ByteData.elementSizeInBytes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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 | sdk/lib/typed_data/dart2js/typed_data_dart2js.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/typed_data.dart
diff --git a/runtime/lib/typed_data.dart b/runtime/lib/typed_data.dart
index 64e43d425dd95f30a3c41eda7dd0956d4c65ed42..195e516ef3d2617e4879c337fdb25cc79b513d2d 100644
--- a/runtime/lib/typed_data.dart
+++ b/runtime/lib/typed_data.dart
@@ -3000,6 +3000,10 @@ class _ByteDataView implements ByteData {
return _offset;
}
+ int get elementSizeInBytes {
Ivan Posva 2013/11/05 19:15:28 I don't think this belongs here.
Ivan Posva 2013/11/05 19:18:13 Never mind, mixed up ByteBuffer and ByteData.
+ return 1;
+ }
+
// Method(s) implementing ByteData interface.
int getInt8(int byteOffset) {
« no previous file with comments | « no previous file | sdk/lib/typed_data/dart2js/typed_data_dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698