| OLD | NEW |
| 1 var typed_data; | 1 var typed_data; |
| 2 (function(exports) { | 2 (function(exports) { |
| 3 'use strict'; | 3 'use strict'; |
| 4 class ByteBuffer extends core.Object { | 4 class ByteBuffer extends core.Object { |
| 5 } | 5 } |
| 6 class TypedData extends core.Object { | 6 class TypedData extends core.Object { |
| 7 } | 7 } |
| 8 let _littleEndian = Symbol('_littleEndian'); | 8 let _littleEndian = Symbol('_littleEndian'); |
| 9 class Endianness extends core.Object { | 9 class Endianness extends core.Object { |
| 10 Endianness$_(littleEndian) { | 10 Endianness$_(littleEndian) { |
| 11 this[_littleEndian] = littleEndian; | 11 this[_littleEndian] = littleEndian; |
| 12 } | 12 } |
| 13 } | 13 } |
| 14 dart.defineNamedConstructor(Endianness, '_'); | 14 dart.defineNamedConstructor(Endianness, '_'); |
| 15 Endianness.BIG_ENDIAN = new Endianness._(false); | 15 Endianness.BIG_ENDIAN = new Endianness._(false); |
| 16 Endianness.LITTLE_ENDIAN = new Endianness._(true); | 16 Endianness.LITTLE_ENDIAN = new Endianness._(true); |
| 17 dart.defineLazyProperties(Endianness, { | 17 dart.defineLazyProperties(Endianness, { |
| 18 get HOST_ENDIAN() { | 18 get HOST_ENDIAN() { |
| 19 return new ByteData.view(new Uint16List.fromList(dart.as(new List.from([1]
), core.List$(core.int))).buffer).getInt8(0) === 1 ? Endianness.LITTLE_ENDIAN :
Endianness.BIG_ENDIAN; | 19 return new ByteData.view(new Uint16List.fromList(dart.as(new core.List.fro
m([1]), core.List$(core.int))).buffer).getInt8(0) === 1 ? Endianness.LITTLE_ENDI
AN : Endianness.BIG_ENDIAN; |
| 20 } | 20 } |
| 21 }); | 21 }); |
| 22 class ByteData extends core.Object { | 22 class ByteData extends core.Object { |
| 23 ByteData(length) { | 23 ByteData(length) { |
| 24 return new _native_typed_data.NativeByteData(length); | 24 return new _native_typed_data.NativeByteData(length); |
| 25 } | 25 } |
| 26 ByteData$view(buffer, offsetInBytes, length) { | 26 ByteData$view(buffer, offsetInBytes, length) { |
| 27 if (offsetInBytes === void 0) | 27 if (offsetInBytes === void 0) |
| 28 offsetInBytes = 0; | 28 offsetInBytes = 0; |
| 29 if (length === void 0) | 29 if (length === void 0) |
| (...skipping 833 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 863 exports.Uint64List = Uint64List; | 863 exports.Uint64List = Uint64List; |
| 864 exports.Float32List = Float32List; | 864 exports.Float32List = Float32List; |
| 865 exports.Float64List = Float64List; | 865 exports.Float64List = Float64List; |
| 866 exports.Float32x4List = Float32x4List; | 866 exports.Float32x4List = Float32x4List; |
| 867 exports.Int32x4List = Int32x4List; | 867 exports.Int32x4List = Int32x4List; |
| 868 exports.Float64x2List = Float64x2List; | 868 exports.Float64x2List = Float64x2List; |
| 869 exports.Float32x4 = Float32x4; | 869 exports.Float32x4 = Float32x4; |
| 870 exports.Int32x4 = Int32x4; | 870 exports.Int32x4 = Int32x4; |
| 871 exports.Float64x2 = Float64x2; | 871 exports.Float64x2 = Float64x2; |
| 872 })(typed_data || (typed_data = {})); | 872 })(typed_data || (typed_data = {})); |
| OLD | NEW |