OLD | NEW |
1 var typed_data = dart.defineLibrary(typed_data, {}); | 1 var typed_data = dart.defineLibrary(typed_data, {}); |
2 var core = dart.import(core); | 2 var core = dart.import(core); |
3 var _native_typed_data = dart.lazyImport(_native_typed_data); | 3 var _native_typed_data = dart.lazyImport(_native_typed_data); |
4 (function(exports, core, _native_typed_data) { | 4 (function(exports, core, _native_typed_data) { |
5 'use strict'; | 5 'use strict'; |
6 class ByteBuffer extends core.Object {} | 6 class ByteBuffer extends core.Object {} |
7 class TypedData extends core.Object {} | 7 class TypedData extends core.Object {} |
8 let _littleEndian = Symbol('_littleEndian'); | 8 let _littleEndian = Symbol('_littleEndian'); |
9 class Endianness extends core.Object { | 9 class Endianness extends core.Object { |
10 _(littleEndian) { | 10 _(littleEndian) { |
11 this[_littleEndian] = littleEndian; | 11 this[_littleEndian] = littleEndian; |
12 } | 12 } |
13 } | 13 } |
14 dart.defineNamedConstructor(Endianness, '_'); | 14 dart.defineNamedConstructor(Endianness, '_'); |
15 dart.setSignature(Endianness, { | 15 dart.setSignature(Endianness, { |
16 constructors: () => ({_: [Endianness, [core.bool]]}) | 16 constructors: () => ({_: [Endianness, [core.bool]]}) |
17 }); | 17 }); |
18 Endianness.BIG_ENDIAN = dart.const(new Endianness._(false)); | 18 Endianness.BIG_ENDIAN = dart.const(new Endianness._(false)); |
19 Endianness.LITTLE_ENDIAN = dart.const(new Endianness._(true)); | 19 Endianness.LITTLE_ENDIAN = dart.const(new Endianness._(true)); |
20 dart.defineLazyProperties(Endianness, { | 20 dart.defineLazyProperties(Endianness, { |
21 get HOST_ENDIAN() { | 21 get HOST_ENDIAN() { |
22 return ByteData.view(Uint16List.fromList(dart.setType([1], core.List$(core
.int))).buffer).getInt8(0) == 1 ? Endianness.LITTLE_ENDIAN : Endianness.BIG_ENDI
AN; | 22 return ByteData.view(Uint16List.fromList(dart.list([1], core.int)).buffer)
.getInt8(0) == 1 ? Endianness.LITTLE_ENDIAN : Endianness.BIG_ENDIAN; |
23 } | 23 } |
24 }); | 24 }); |
25 class ByteData extends core.Object { | 25 class ByteData extends core.Object { |
26 static new(length) { | 26 static new(length) { |
27 return _native_typed_data.NativeByteData.new(length); | 27 return _native_typed_data.NativeByteData.new(length); |
28 } | 28 } |
29 static view(buffer, offsetInBytes, length) { | 29 static view(buffer, offsetInBytes, length) { |
30 if (offsetInBytes === void 0) | 30 if (offsetInBytes === void 0) |
31 offsetInBytes = 0; | 31 offsetInBytes = 0; |
32 if (length === void 0) | 32 if (length === void 0) |
(...skipping 17 matching lines...) Expand all Loading... |
50 } | 50 } |
51 static view(buffer, offsetInBytes, length) { | 51 static view(buffer, offsetInBytes, length) { |
52 if (offsetInBytes === void 0) | 52 if (offsetInBytes === void 0) |
53 offsetInBytes = 0; | 53 offsetInBytes = 0; |
54 if (length === void 0) | 54 if (length === void 0) |
55 length = null; | 55 length = null; |
56 return buffer.asInt8List(offsetInBytes, length); | 56 return buffer.asInt8List(offsetInBytes, length); |
57 } | 57 } |
58 } | 58 } |
59 Int8List[dart.implements] = () => [core.List$(core.int), TypedData]; | 59 Int8List[dart.implements] = () => [core.List$(core.int), TypedData]; |
| 60 dart.implementExtension(Int8List, () => [core.List, core.Iterable]); |
60 dart.setSignature(Int8List, { | 61 dart.setSignature(Int8List, { |
61 constructors: () => ({ | 62 constructors: () => ({ |
62 new: [Int8List, [core.int]], | 63 new: [Int8List, [core.int]], |
63 fromList: [Int8List, [core.List$(core.int)]], | 64 fromList: [Int8List, [core.List$(core.int)]], |
64 view: [Int8List, [ByteBuffer], [core.int, core.int]] | 65 view: [Int8List, [ByteBuffer], [core.int, core.int]] |
65 }) | 66 }) |
66 }); | 67 }); |
67 Int8List.BYTES_PER_ELEMENT = 1; | 68 Int8List.BYTES_PER_ELEMENT = 1; |
68 class Uint8List extends core.Object { | 69 class Uint8List extends core.Object { |
69 static new(length) { | 70 static new(length) { |
70 return _native_typed_data.NativeUint8List.new(length); | 71 return _native_typed_data.NativeUint8List.new(length); |
71 } | 72 } |
72 static fromList(elements) { | 73 static fromList(elements) { |
73 return _native_typed_data.NativeUint8List.fromList(elements); | 74 return _native_typed_data.NativeUint8List.fromList(elements); |
74 } | 75 } |
75 static view(buffer, offsetInBytes, length) { | 76 static view(buffer, offsetInBytes, length) { |
76 if (offsetInBytes === void 0) | 77 if (offsetInBytes === void 0) |
77 offsetInBytes = 0; | 78 offsetInBytes = 0; |
78 if (length === void 0) | 79 if (length === void 0) |
79 length = null; | 80 length = null; |
80 return buffer.asUint8List(offsetInBytes, length); | 81 return buffer.asUint8List(offsetInBytes, length); |
81 } | 82 } |
82 } | 83 } |
83 Uint8List[dart.implements] = () => [core.List$(core.int), TypedData]; | 84 Uint8List[dart.implements] = () => [core.List$(core.int), TypedData]; |
| 85 dart.implementExtension(Uint8List, () => [core.List, core.Iterable]); |
84 dart.setSignature(Uint8List, { | 86 dart.setSignature(Uint8List, { |
85 constructors: () => ({ | 87 constructors: () => ({ |
86 new: [Uint8List, [core.int]], | 88 new: [Uint8List, [core.int]], |
87 fromList: [Uint8List, [core.List$(core.int)]], | 89 fromList: [Uint8List, [core.List$(core.int)]], |
88 view: [Uint8List, [ByteBuffer], [core.int, core.int]] | 90 view: [Uint8List, [ByteBuffer], [core.int, core.int]] |
89 }) | 91 }) |
90 }); | 92 }); |
91 Uint8List.BYTES_PER_ELEMENT = 1; | 93 Uint8List.BYTES_PER_ELEMENT = 1; |
92 class Uint8ClampedList extends core.Object { | 94 class Uint8ClampedList extends core.Object { |
93 static new(length) { | 95 static new(length) { |
94 return _native_typed_data.NativeUint8ClampedList.new(length); | 96 return _native_typed_data.NativeUint8ClampedList.new(length); |
95 } | 97 } |
96 static fromList(elements) { | 98 static fromList(elements) { |
97 return _native_typed_data.NativeUint8ClampedList.fromList(elements); | 99 return _native_typed_data.NativeUint8ClampedList.fromList(elements); |
98 } | 100 } |
99 static view(buffer, offsetInBytes, length) { | 101 static view(buffer, offsetInBytes, length) { |
100 if (offsetInBytes === void 0) | 102 if (offsetInBytes === void 0) |
101 offsetInBytes = 0; | 103 offsetInBytes = 0; |
102 if (length === void 0) | 104 if (length === void 0) |
103 length = null; | 105 length = null; |
104 return buffer.asUint8ClampedList(offsetInBytes, length); | 106 return buffer.asUint8ClampedList(offsetInBytes, length); |
105 } | 107 } |
106 } | 108 } |
107 Uint8ClampedList[dart.implements] = () => [core.List$(core.int), TypedData]; | 109 Uint8ClampedList[dart.implements] = () => [core.List$(core.int), TypedData]; |
| 110 dart.implementExtension(Uint8ClampedList, () => [core.List, core.Iterable]); |
108 dart.setSignature(Uint8ClampedList, { | 111 dart.setSignature(Uint8ClampedList, { |
109 constructors: () => ({ | 112 constructors: () => ({ |
110 new: [Uint8ClampedList, [core.int]], | 113 new: [Uint8ClampedList, [core.int]], |
111 fromList: [Uint8ClampedList, [core.List$(core.int)]], | 114 fromList: [Uint8ClampedList, [core.List$(core.int)]], |
112 view: [Uint8ClampedList, [ByteBuffer], [core.int, core.int]] | 115 view: [Uint8ClampedList, [ByteBuffer], [core.int, core.int]] |
113 }) | 116 }) |
114 }); | 117 }); |
115 Uint8ClampedList.BYTES_PER_ELEMENT = 1; | 118 Uint8ClampedList.BYTES_PER_ELEMENT = 1; |
116 class Int16List extends core.Object { | 119 class Int16List extends core.Object { |
117 static new(length) { | 120 static new(length) { |
118 return _native_typed_data.NativeInt16List.new(length); | 121 return _native_typed_data.NativeInt16List.new(length); |
119 } | 122 } |
120 static fromList(elements) { | 123 static fromList(elements) { |
121 return _native_typed_data.NativeInt16List.fromList(elements); | 124 return _native_typed_data.NativeInt16List.fromList(elements); |
122 } | 125 } |
123 static view(buffer, offsetInBytes, length) { | 126 static view(buffer, offsetInBytes, length) { |
124 if (offsetInBytes === void 0) | 127 if (offsetInBytes === void 0) |
125 offsetInBytes = 0; | 128 offsetInBytes = 0; |
126 if (length === void 0) | 129 if (length === void 0) |
127 length = null; | 130 length = null; |
128 return buffer.asInt16List(offsetInBytes, length); | 131 return buffer.asInt16List(offsetInBytes, length); |
129 } | 132 } |
130 } | 133 } |
131 Int16List[dart.implements] = () => [core.List$(core.int), TypedData]; | 134 Int16List[dart.implements] = () => [core.List$(core.int), TypedData]; |
| 135 dart.implementExtension(Int16List, () => [core.List, core.Iterable]); |
132 dart.setSignature(Int16List, { | 136 dart.setSignature(Int16List, { |
133 constructors: () => ({ | 137 constructors: () => ({ |
134 new: [Int16List, [core.int]], | 138 new: [Int16List, [core.int]], |
135 fromList: [Int16List, [core.List$(core.int)]], | 139 fromList: [Int16List, [core.List$(core.int)]], |
136 view: [Int16List, [ByteBuffer], [core.int, core.int]] | 140 view: [Int16List, [ByteBuffer], [core.int, core.int]] |
137 }) | 141 }) |
138 }); | 142 }); |
139 Int16List.BYTES_PER_ELEMENT = 2; | 143 Int16List.BYTES_PER_ELEMENT = 2; |
140 class Uint16List extends core.Object { | 144 class Uint16List extends core.Object { |
141 static new(length) { | 145 static new(length) { |
142 return _native_typed_data.NativeUint16List.new(length); | 146 return _native_typed_data.NativeUint16List.new(length); |
143 } | 147 } |
144 static fromList(elements) { | 148 static fromList(elements) { |
145 return _native_typed_data.NativeUint16List.fromList(elements); | 149 return _native_typed_data.NativeUint16List.fromList(elements); |
146 } | 150 } |
147 static view(buffer, offsetInBytes, length) { | 151 static view(buffer, offsetInBytes, length) { |
148 if (offsetInBytes === void 0) | 152 if (offsetInBytes === void 0) |
149 offsetInBytes = 0; | 153 offsetInBytes = 0; |
150 if (length === void 0) | 154 if (length === void 0) |
151 length = null; | 155 length = null; |
152 return buffer.asUint16List(offsetInBytes, length); | 156 return buffer.asUint16List(offsetInBytes, length); |
153 } | 157 } |
154 } | 158 } |
155 Uint16List[dart.implements] = () => [core.List$(core.int), TypedData]; | 159 Uint16List[dart.implements] = () => [core.List$(core.int), TypedData]; |
| 160 dart.implementExtension(Uint16List, () => [core.List, core.Iterable]); |
156 dart.setSignature(Uint16List, { | 161 dart.setSignature(Uint16List, { |
157 constructors: () => ({ | 162 constructors: () => ({ |
158 new: [Uint16List, [core.int]], | 163 new: [Uint16List, [core.int]], |
159 fromList: [Uint16List, [core.List$(core.int)]], | 164 fromList: [Uint16List, [core.List$(core.int)]], |
160 view: [Uint16List, [ByteBuffer], [core.int, core.int]] | 165 view: [Uint16List, [ByteBuffer], [core.int, core.int]] |
161 }) | 166 }) |
162 }); | 167 }); |
163 Uint16List.BYTES_PER_ELEMENT = 2; | 168 Uint16List.BYTES_PER_ELEMENT = 2; |
164 class Int32List extends core.Object { | 169 class Int32List extends core.Object { |
165 static new(length) { | 170 static new(length) { |
166 return _native_typed_data.NativeInt32List.new(length); | 171 return _native_typed_data.NativeInt32List.new(length); |
167 } | 172 } |
168 static fromList(elements) { | 173 static fromList(elements) { |
169 return _native_typed_data.NativeInt32List.fromList(elements); | 174 return _native_typed_data.NativeInt32List.fromList(elements); |
170 } | 175 } |
171 static view(buffer, offsetInBytes, length) { | 176 static view(buffer, offsetInBytes, length) { |
172 if (offsetInBytes === void 0) | 177 if (offsetInBytes === void 0) |
173 offsetInBytes = 0; | 178 offsetInBytes = 0; |
174 if (length === void 0) | 179 if (length === void 0) |
175 length = null; | 180 length = null; |
176 return buffer.asInt32List(offsetInBytes, length); | 181 return buffer.asInt32List(offsetInBytes, length); |
177 } | 182 } |
178 } | 183 } |
179 Int32List[dart.implements] = () => [core.List$(core.int), TypedData]; | 184 Int32List[dart.implements] = () => [core.List$(core.int), TypedData]; |
| 185 dart.implementExtension(Int32List, () => [core.List, core.Iterable]); |
180 dart.setSignature(Int32List, { | 186 dart.setSignature(Int32List, { |
181 constructors: () => ({ | 187 constructors: () => ({ |
182 new: [Int32List, [core.int]], | 188 new: [Int32List, [core.int]], |
183 fromList: [Int32List, [core.List$(core.int)]], | 189 fromList: [Int32List, [core.List$(core.int)]], |
184 view: [Int32List, [ByteBuffer], [core.int, core.int]] | 190 view: [Int32List, [ByteBuffer], [core.int, core.int]] |
185 }) | 191 }) |
186 }); | 192 }); |
187 Int32List.BYTES_PER_ELEMENT = 4; | 193 Int32List.BYTES_PER_ELEMENT = 4; |
188 class Uint32List extends core.Object { | 194 class Uint32List extends core.Object { |
189 static new(length) { | 195 static new(length) { |
190 return _native_typed_data.NativeUint32List.new(length); | 196 return _native_typed_data.NativeUint32List.new(length); |
191 } | 197 } |
192 static fromList(elements) { | 198 static fromList(elements) { |
193 return _native_typed_data.NativeUint32List.fromList(elements); | 199 return _native_typed_data.NativeUint32List.fromList(elements); |
194 } | 200 } |
195 static view(buffer, offsetInBytes, length) { | 201 static view(buffer, offsetInBytes, length) { |
196 if (offsetInBytes === void 0) | 202 if (offsetInBytes === void 0) |
197 offsetInBytes = 0; | 203 offsetInBytes = 0; |
198 if (length === void 0) | 204 if (length === void 0) |
199 length = null; | 205 length = null; |
200 return buffer.asUint32List(offsetInBytes, length); | 206 return buffer.asUint32List(offsetInBytes, length); |
201 } | 207 } |
202 } | 208 } |
203 Uint32List[dart.implements] = () => [core.List$(core.int), TypedData]; | 209 Uint32List[dart.implements] = () => [core.List$(core.int), TypedData]; |
| 210 dart.implementExtension(Uint32List, () => [core.List, core.Iterable]); |
204 dart.setSignature(Uint32List, { | 211 dart.setSignature(Uint32List, { |
205 constructors: () => ({ | 212 constructors: () => ({ |
206 new: [Uint32List, [core.int]], | 213 new: [Uint32List, [core.int]], |
207 fromList: [Uint32List, [core.List$(core.int)]], | 214 fromList: [Uint32List, [core.List$(core.int)]], |
208 view: [Uint32List, [ByteBuffer], [core.int, core.int]] | 215 view: [Uint32List, [ByteBuffer], [core.int, core.int]] |
209 }) | 216 }) |
210 }); | 217 }); |
211 Uint32List.BYTES_PER_ELEMENT = 4; | 218 Uint32List.BYTES_PER_ELEMENT = 4; |
212 class Int64List extends core.Object { | 219 class Int64List extends core.Object { |
213 static new(length) { | 220 static new(length) { |
214 throw new core.UnsupportedError("Int64List not supported by dart2js."); | 221 throw new core.UnsupportedError("Int64List not supported by dart2js."); |
215 } | 222 } |
216 static fromList(elements) { | 223 static fromList(elements) { |
217 throw new core.UnsupportedError("Int64List not supported by dart2js."); | 224 throw new core.UnsupportedError("Int64List not supported by dart2js."); |
218 } | 225 } |
219 static view(buffer, offsetInBytes, length) { | 226 static view(buffer, offsetInBytes, length) { |
220 if (offsetInBytes === void 0) | 227 if (offsetInBytes === void 0) |
221 offsetInBytes = 0; | 228 offsetInBytes = 0; |
222 if (length === void 0) | 229 if (length === void 0) |
223 length = null; | 230 length = null; |
224 return buffer.asInt64List(offsetInBytes, length); | 231 return buffer.asInt64List(offsetInBytes, length); |
225 } | 232 } |
226 } | 233 } |
227 Int64List[dart.implements] = () => [core.List$(core.int), TypedData]; | 234 Int64List[dart.implements] = () => [core.List$(core.int), TypedData]; |
| 235 dart.implementExtension(Int64List, () => [core.List, core.Iterable]); |
228 dart.setSignature(Int64List, { | 236 dart.setSignature(Int64List, { |
229 constructors: () => ({ | 237 constructors: () => ({ |
230 new: [Int64List, [core.int]], | 238 new: [Int64List, [core.int]], |
231 fromList: [Int64List, [core.List$(core.int)]], | 239 fromList: [Int64List, [core.List$(core.int)]], |
232 view: [Int64List, [ByteBuffer], [core.int, core.int]] | 240 view: [Int64List, [ByteBuffer], [core.int, core.int]] |
233 }) | 241 }) |
234 }); | 242 }); |
235 Int64List.BYTES_PER_ELEMENT = 8; | 243 Int64List.BYTES_PER_ELEMENT = 8; |
236 class Uint64List extends core.Object { | 244 class Uint64List extends core.Object { |
237 static new(length) { | 245 static new(length) { |
238 throw new core.UnsupportedError("Uint64List not supported by dart2js."); | 246 throw new core.UnsupportedError("Uint64List not supported by dart2js."); |
239 } | 247 } |
240 static fromList(elements) { | 248 static fromList(elements) { |
241 throw new core.UnsupportedError("Uint64List not supported by dart2js."); | 249 throw new core.UnsupportedError("Uint64List not supported by dart2js."); |
242 } | 250 } |
243 static view(buffer, offsetInBytes, length) { | 251 static view(buffer, offsetInBytes, length) { |
244 if (offsetInBytes === void 0) | 252 if (offsetInBytes === void 0) |
245 offsetInBytes = 0; | 253 offsetInBytes = 0; |
246 if (length === void 0) | 254 if (length === void 0) |
247 length = null; | 255 length = null; |
248 return buffer.asUint64List(offsetInBytes, length); | 256 return buffer.asUint64List(offsetInBytes, length); |
249 } | 257 } |
250 } | 258 } |
251 Uint64List[dart.implements] = () => [core.List$(core.int), TypedData]; | 259 Uint64List[dart.implements] = () => [core.List$(core.int), TypedData]; |
| 260 dart.implementExtension(Uint64List, () => [core.List, core.Iterable]); |
252 dart.setSignature(Uint64List, { | 261 dart.setSignature(Uint64List, { |
253 constructors: () => ({ | 262 constructors: () => ({ |
254 new: [Uint64List, [core.int]], | 263 new: [Uint64List, [core.int]], |
255 fromList: [Uint64List, [core.List$(core.int)]], | 264 fromList: [Uint64List, [core.List$(core.int)]], |
256 view: [Uint64List, [ByteBuffer], [core.int, core.int]] | 265 view: [Uint64List, [ByteBuffer], [core.int, core.int]] |
257 }) | 266 }) |
258 }); | 267 }); |
259 Uint64List.BYTES_PER_ELEMENT = 8; | 268 Uint64List.BYTES_PER_ELEMENT = 8; |
260 class Float32List extends core.Object { | 269 class Float32List extends core.Object { |
261 static new(length) { | 270 static new(length) { |
262 return _native_typed_data.NativeFloat32List.new(length); | 271 return _native_typed_data.NativeFloat32List.new(length); |
263 } | 272 } |
264 static fromList(elements) { | 273 static fromList(elements) { |
265 return _native_typed_data.NativeFloat32List.fromList(elements); | 274 return _native_typed_data.NativeFloat32List.fromList(elements); |
266 } | 275 } |
267 static view(buffer, offsetInBytes, length) { | 276 static view(buffer, offsetInBytes, length) { |
268 if (offsetInBytes === void 0) | 277 if (offsetInBytes === void 0) |
269 offsetInBytes = 0; | 278 offsetInBytes = 0; |
270 if (length === void 0) | 279 if (length === void 0) |
271 length = null; | 280 length = null; |
272 return buffer.asFloat32List(offsetInBytes, length); | 281 return buffer.asFloat32List(offsetInBytes, length); |
273 } | 282 } |
274 } | 283 } |
275 Float32List[dart.implements] = () => [core.List$(core.double), TypedData]; | 284 Float32List[dart.implements] = () => [core.List$(core.double), TypedData]; |
| 285 dart.implementExtension(Float32List, () => [core.List, core.Iterable]); |
276 dart.setSignature(Float32List, { | 286 dart.setSignature(Float32List, { |
277 constructors: () => ({ | 287 constructors: () => ({ |
278 new: [Float32List, [core.int]], | 288 new: [Float32List, [core.int]], |
279 fromList: [Float32List, [core.List$(core.double)]], | 289 fromList: [Float32List, [core.List$(core.double)]], |
280 view: [Float32List, [ByteBuffer], [core.int, core.int]] | 290 view: [Float32List, [ByteBuffer], [core.int, core.int]] |
281 }) | 291 }) |
282 }); | 292 }); |
283 Float32List.BYTES_PER_ELEMENT = 4; | 293 Float32List.BYTES_PER_ELEMENT = 4; |
284 class Float64List extends core.Object { | 294 class Float64List extends core.Object { |
285 static new(length) { | 295 static new(length) { |
286 return _native_typed_data.NativeFloat64List.new(length); | 296 return _native_typed_data.NativeFloat64List.new(length); |
287 } | 297 } |
288 static fromList(elements) { | 298 static fromList(elements) { |
289 return _native_typed_data.NativeFloat64List.fromList(elements); | 299 return _native_typed_data.NativeFloat64List.fromList(elements); |
290 } | 300 } |
291 static view(buffer, offsetInBytes, length) { | 301 static view(buffer, offsetInBytes, length) { |
292 if (offsetInBytes === void 0) | 302 if (offsetInBytes === void 0) |
293 offsetInBytes = 0; | 303 offsetInBytes = 0; |
294 if (length === void 0) | 304 if (length === void 0) |
295 length = null; | 305 length = null; |
296 return buffer.asFloat64List(offsetInBytes, length); | 306 return buffer.asFloat64List(offsetInBytes, length); |
297 } | 307 } |
298 } | 308 } |
299 Float64List[dart.implements] = () => [core.List$(core.double), TypedData]; | 309 Float64List[dart.implements] = () => [core.List$(core.double), TypedData]; |
| 310 dart.implementExtension(Float64List, () => [core.List, core.Iterable]); |
300 dart.setSignature(Float64List, { | 311 dart.setSignature(Float64List, { |
301 constructors: () => ({ | 312 constructors: () => ({ |
302 new: [Float64List, [core.int]], | 313 new: [Float64List, [core.int]], |
303 fromList: [Float64List, [core.List$(core.double)]], | 314 fromList: [Float64List, [core.List$(core.double)]], |
304 view: [Float64List, [ByteBuffer], [core.int, core.int]] | 315 view: [Float64List, [ByteBuffer], [core.int, core.int]] |
305 }) | 316 }) |
306 }); | 317 }); |
307 Float64List.BYTES_PER_ELEMENT = 8; | 318 Float64List.BYTES_PER_ELEMENT = 8; |
308 class Float32x4List extends core.Object { | 319 class Float32x4List extends core.Object { |
309 static new(length) { | 320 static new(length) { |
310 return new _native_typed_data.NativeFloat32x4List(length); | 321 return new _native_typed_data.NativeFloat32x4List(length); |
311 } | 322 } |
312 static fromList(elements) { | 323 static fromList(elements) { |
313 return _native_typed_data.NativeFloat32x4List.fromList(elements); | 324 return _native_typed_data.NativeFloat32x4List.fromList(elements); |
314 } | 325 } |
315 static view(buffer, offsetInBytes, length) { | 326 static view(buffer, offsetInBytes, length) { |
316 if (offsetInBytes === void 0) | 327 if (offsetInBytes === void 0) |
317 offsetInBytes = 0; | 328 offsetInBytes = 0; |
318 if (length === void 0) | 329 if (length === void 0) |
319 length = null; | 330 length = null; |
320 return buffer.asFloat32x4List(offsetInBytes, length); | 331 return buffer.asFloat32x4List(offsetInBytes, length); |
321 } | 332 } |
322 } | 333 } |
323 Float32x4List[dart.implements] = () => [core.List$(Float32x4), TypedData]; | 334 Float32x4List[dart.implements] = () => [core.List$(Float32x4), TypedData]; |
| 335 dart.implementExtension(Float32x4List, () => [core.List, core.Iterable]); |
324 dart.setSignature(Float32x4List, { | 336 dart.setSignature(Float32x4List, { |
325 constructors: () => ({ | 337 constructors: () => ({ |
326 new: [Float32x4List, [core.int]], | 338 new: [Float32x4List, [core.int]], |
327 fromList: [Float32x4List, [core.List$(Float32x4)]], | 339 fromList: [Float32x4List, [core.List$(Float32x4)]], |
328 view: [Float32x4List, [ByteBuffer], [core.int, core.int]] | 340 view: [Float32x4List, [ByteBuffer], [core.int, core.int]] |
329 }) | 341 }) |
330 }); | 342 }); |
331 Float32x4List.BYTES_PER_ELEMENT = 16; | 343 Float32x4List.BYTES_PER_ELEMENT = 16; |
332 class Int32x4List extends core.Object { | 344 class Int32x4List extends core.Object { |
333 static new(length) { | 345 static new(length) { |
334 return new _native_typed_data.NativeInt32x4List(length); | 346 return new _native_typed_data.NativeInt32x4List(length); |
335 } | 347 } |
336 static fromList(elements) { | 348 static fromList(elements) { |
337 return _native_typed_data.NativeInt32x4List.fromList(elements); | 349 return _native_typed_data.NativeInt32x4List.fromList(elements); |
338 } | 350 } |
339 static view(buffer, offsetInBytes, length) { | 351 static view(buffer, offsetInBytes, length) { |
340 if (offsetInBytes === void 0) | 352 if (offsetInBytes === void 0) |
341 offsetInBytes = 0; | 353 offsetInBytes = 0; |
342 if (length === void 0) | 354 if (length === void 0) |
343 length = null; | 355 length = null; |
344 return buffer.asInt32x4List(offsetInBytes, length); | 356 return buffer.asInt32x4List(offsetInBytes, length); |
345 } | 357 } |
346 } | 358 } |
347 Int32x4List[dart.implements] = () => [core.List$(Int32x4), TypedData]; | 359 Int32x4List[dart.implements] = () => [core.List$(Int32x4), TypedData]; |
| 360 dart.implementExtension(Int32x4List, () => [core.List, core.Iterable]); |
348 dart.setSignature(Int32x4List, { | 361 dart.setSignature(Int32x4List, { |
349 constructors: () => ({ | 362 constructors: () => ({ |
350 new: [Int32x4List, [core.int]], | 363 new: [Int32x4List, [core.int]], |
351 fromList: [Int32x4List, [core.List$(Int32x4)]], | 364 fromList: [Int32x4List, [core.List$(Int32x4)]], |
352 view: [Int32x4List, [ByteBuffer], [core.int, core.int]] | 365 view: [Int32x4List, [ByteBuffer], [core.int, core.int]] |
353 }) | 366 }) |
354 }); | 367 }); |
355 Int32x4List.BYTES_PER_ELEMENT = 16; | 368 Int32x4List.BYTES_PER_ELEMENT = 16; |
356 class Float64x2List extends core.Object { | 369 class Float64x2List extends core.Object { |
357 static new(length) { | 370 static new(length) { |
358 return new _native_typed_data.NativeFloat64x2List(length); | 371 return new _native_typed_data.NativeFloat64x2List(length); |
359 } | 372 } |
360 static fromList(elements) { | 373 static fromList(elements) { |
361 return _native_typed_data.NativeFloat64x2List.fromList(elements); | 374 return _native_typed_data.NativeFloat64x2List.fromList(elements); |
362 } | 375 } |
363 static view(buffer, offsetInBytes, length) { | 376 static view(buffer, offsetInBytes, length) { |
364 if (offsetInBytes === void 0) | 377 if (offsetInBytes === void 0) |
365 offsetInBytes = 0; | 378 offsetInBytes = 0; |
366 if (length === void 0) | 379 if (length === void 0) |
367 length = null; | 380 length = null; |
368 return buffer.asFloat64x2List(offsetInBytes, length); | 381 return buffer.asFloat64x2List(offsetInBytes, length); |
369 } | 382 } |
370 } | 383 } |
371 Float64x2List[dart.implements] = () => [core.List$(Float64x2), TypedData]; | 384 Float64x2List[dart.implements] = () => [core.List$(Float64x2), TypedData]; |
| 385 dart.implementExtension(Float64x2List, () => [core.List, core.Iterable]); |
372 dart.setSignature(Float64x2List, { | 386 dart.setSignature(Float64x2List, { |
373 constructors: () => ({ | 387 constructors: () => ({ |
374 new: [Float64x2List, [core.int]], | 388 new: [Float64x2List, [core.int]], |
375 fromList: [Float64x2List, [core.List$(Float64x2)]], | 389 fromList: [Float64x2List, [core.List$(Float64x2)]], |
376 view: [Float64x2List, [ByteBuffer], [core.int, core.int]] | 390 view: [Float64x2List, [ByteBuffer], [core.int, core.int]] |
377 }) | 391 }) |
378 }); | 392 }); |
379 Float64x2List.BYTES_PER_ELEMENT = 16; | 393 Float64x2List.BYTES_PER_ELEMENT = 16; |
380 class Float32x4 extends core.Object { | 394 class Float32x4 extends core.Object { |
381 static new(x, y, z, w) { | 395 static new(x, y, z, w) { |
(...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
971 exports.Uint64List = Uint64List; | 985 exports.Uint64List = Uint64List; |
972 exports.Float32List = Float32List; | 986 exports.Float32List = Float32List; |
973 exports.Float64List = Float64List; | 987 exports.Float64List = Float64List; |
974 exports.Float32x4List = Float32x4List; | 988 exports.Float32x4List = Float32x4List; |
975 exports.Int32x4List = Int32x4List; | 989 exports.Int32x4List = Int32x4List; |
976 exports.Float64x2List = Float64x2List; | 990 exports.Float64x2List = Float64x2List; |
977 exports.Float32x4 = Float32x4; | 991 exports.Float32x4 = Float32x4; |
978 exports.Int32x4 = Int32x4; | 992 exports.Int32x4 = Int32x4; |
979 exports.Float64x2 = Float64x2; | 993 exports.Float64x2 = Float64x2; |
980 })(typed_data, core, _native_typed_data); | 994 })(typed_data, core, _native_typed_data); |
OLD | NEW |