OLD | NEW |
1 | 1 |
2 class Int16ArrayJs extends ArrayBufferViewJs implements Int16Array, List<int> na
tive "*Int16Array" { | 2 class _Int16ArrayJs extends _ArrayBufferViewJs implements Int16Array, List<int>
native "*Int16Array" { |
3 | 3 |
4 factory Int16Array(int length) => _construct_Int16Array(length); | 4 factory Int16Array(int length) => _construct_Int16Array(length); |
5 | 5 |
6 factory Int16Array.fromList(List<int> list) => _construct_Int16Array(list); | 6 factory Int16Array.fromList(List<int> list) => _construct_Int16Array(list); |
7 | 7 |
8 factory Int16Array.fromBuffer(ArrayBuffer buffer) => _construct_Int16Array(buf
fer); | 8 factory Int16Array.fromBuffer(ArrayBuffer buffer) => _construct_Int16Array(buf
fer); |
9 | 9 |
10 static _construct_Int16Array(arg) native 'return new Int16Array(arg);'; | 10 static _construct_Int16Array(arg) native 'return new Int16Array(arg);'; |
11 | 11 |
12 static final int BYTES_PER_ELEMENT = 2; | 12 static final int BYTES_PER_ELEMENT = 2; |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 void insertRange(int start, int length, [int initialValue]) { | 79 void insertRange(int start, int length, [int initialValue]) { |
80 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); | 80 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); |
81 } | 81 } |
82 List<int> getRange(int start, int length) => | 82 List<int> getRange(int start, int length) => |
83 _Lists.getRange(this, start, length, <int>[]); | 83 _Lists.getRange(this, start, length, <int>[]); |
84 | 84 |
85 // -- end List<int> mixins. | 85 // -- end List<int> mixins. |
86 | 86 |
87 void setElements(Object array, [int offset = null]) native; | 87 void setElements(Object array, [int offset = null]) native; |
88 | 88 |
89 Int16ArrayJs subarray(int start, [int end = null]) native; | 89 _Int16ArrayJs subarray(int start, [int end = null]) native; |
90 } | 90 } |
OLD | NEW |