| 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 938 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 971 exports.Uint64List = Uint64List; | 971 exports.Uint64List = Uint64List; |
| 972 exports.Float32List = Float32List; | 972 exports.Float32List = Float32List; |
| 973 exports.Float64List = Float64List; | 973 exports.Float64List = Float64List; |
| 974 exports.Float32x4List = Float32x4List; | 974 exports.Float32x4List = Float32x4List; |
| 975 exports.Int32x4List = Int32x4List; | 975 exports.Int32x4List = Int32x4List; |
| 976 exports.Float64x2List = Float64x2List; | 976 exports.Float64x2List = Float64x2List; |
| 977 exports.Float32x4 = Float32x4; | 977 exports.Float32x4 = Float32x4; |
| 978 exports.Int32x4 = Int32x4; | 978 exports.Int32x4 = Int32x4; |
| 979 exports.Float64x2 = Float64x2; | 979 exports.Float64x2 = Float64x2; |
| 980 })(typed_data, core, _native_typed_data); | 980 })(typed_data, core, _native_typed_data); |
| OLD | NEW |