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