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