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

Side by Side Diff: client/dom/generated/src/frog/Float64Array.dart

Issue 8883007: Revert "Revert "Implement typed array constructors."" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 1
2 class Float64Array extends ArrayBufferView native "*Float64Array" { 2 class Float64Array extends ArrayBufferView implements List<num> native "Float64A rray" {
3
4 factory Float64Array(int length) => _construct(length);
5
6 factory Float64Array.fromList(List<num> list) => _construct(list);
7
8 factory Float64Array.fromBuffer(ArrayBuffer buffer) => _construct(buffer);
9
10 static _construct(arg) native 'return new Float64Array(arg);';
3 11
4 static final int BYTES_PER_ELEMENT = 8; 12 static final int BYTES_PER_ELEMENT = 8;
5 13
6 int length; 14 int length;
7 15
16 num operator[](int index) native;
17
18 void operator[]=(int index, num value) native;
19
8 Float64Array subarray(int start, [int end = null]) native; 20 Float64Array subarray(int start, [int end = null]) native;
9 } 21 }
OLDNEW
« no previous file with comments | « client/dom/generated/src/frog/Float32Array.dart ('k') | client/dom/generated/src/frog/HTMLCollection.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698