OLD | NEW |
1 library dart.typed_data; | 1 library dart.typed_data; |
2 import 'package:dev_compiler/runtime/dart_logging_runtime.dart' as DEVC$RT; | 2 import 'package:dev_compiler/runtime/dart_logging_runtime.dart' as DEVC$RT; |
3 import 'dart:collection'; | 3 import 'dart:collection'; |
4 abstract class ByteBuffer {int get lengthInBytes; | 4 abstract class ByteBuffer {int get lengthInBytes; |
5 Uint8List asUint8List([int offsetInBytes = 0, int length]); | 5 Uint8List asUint8List([int offsetInBytes = 0, int length]); |
6 Int8List asInt8List([int offsetInBytes = 0, int length]); | 6 Int8List asInt8List([int offsetInBytes = 0, int length]); |
7 Uint8ClampedList asUint8ClampedList([int offsetInBytes = 0, int length]); | 7 Uint8ClampedList asUint8ClampedList([int offsetInBytes = 0, int length]); |
8 Uint16List asUint16List([int offsetInBytes = 0, int length]); | 8 Uint16List asUint16List([int offsetInBytes = 0, int length]); |
9 Int16List asInt16List([int offsetInBytes = 0, int length]); | 9 Int16List asInt16List([int offsetInBytes = 0, int length]); |
10 Uint32List asUint32List([int offsetInBytes = 0, int length]); | 10 Uint32List asUint32List([int offsetInBytes = 0, int length]); |
(...skipping 12 matching lines...) Expand all Loading... |
23 int get lengthInBytes; | 23 int get lengthInBytes; |
24 ByteBuffer get buffer; | 24 ByteBuffer get buffer; |
25 } | 25 } |
26 class Endianness {const Endianness._(this._littleEndian); | 26 class Endianness {const Endianness._(this._littleEndian); |
27 static const Endianness BIG_ENDIAN = const Endianness._(false); | 27 static const Endianness BIG_ENDIAN = const Endianness._(false); |
28 static const Endianness LITTLE_ENDIAN = const Endianness._(true); | 28 static const Endianness LITTLE_ENDIAN = const Endianness._(true); |
29 static final Endianness HOST_ENDIAN = (new ByteData.view(new Uint16List.fromLis
t(((__x0) => DEVC$RT.cast(__x0, DEVC$RT.type((List<dynamic> _) { | 29 static final Endianness HOST_ENDIAN = (new ByteData.view(new Uint16List.fromLis
t(((__x0) => DEVC$RT.cast(__x0, DEVC$RT.type((List<dynamic> _) { |
30 } | 30 } |
31 ), DEVC$RT.type((List<int> _) { | 31 ), DEVC$RT.type((List<int> _) { |
32 } | 32 } |
33 ), "CastLiteral", """line 120, column 48 of dart:typed_data: """, __x0 is List<i
nt>, false))([1])).buffer)).getInt8(0) == 1 ? LITTLE_ENDIAN : BIG_ENDIAN; | 33 ), "InferableLiteral", """line 120, column 48 of dart:typed_data: """, __x0 is L
ist<int>, false))([1])).buffer)).getInt8(0) == 1 ? LITTLE_ENDIAN : BIG_ENDIAN; |
34 final bool _littleEndian; | 34 final bool _littleEndian; |
35 } | 35 } |
36 abstract class ByteData implements TypedData {external factory ByteData(int len
gth); | 36 abstract class ByteData implements TypedData {external factory ByteData(int len
gth); |
37 factory ByteData.view(ByteBuffer buffer, [int offsetInBytes = 0, int length]) { | 37 factory ByteData.view(ByteBuffer buffer, [int offsetInBytes = 0, int length]) { |
38 return buffer.asByteData(offsetInBytes, length); | 38 return buffer.asByteData(offsetInBytes, length); |
39 } | 39 } |
40 int getInt8(int byteOffset); | 40 int getInt8(int byteOffset); |
41 void setInt8(int byteOffset, int value); | 41 void setInt8(int byteOffset, int value); |
42 int getUint8(int byteOffset); | 42 int getUint8(int byteOffset); |
43 void setUint8(int byteOffset, int value); | 43 void setUint8(int byteOffset, int value); |
(...skipping 703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
747 Float64x2 clamp(Float64x2 lowerLimit, Float64x2 upperLimit); | 747 Float64x2 clamp(Float64x2 lowerLimit, Float64x2 upperLimit); |
748 double get x; | 748 double get x; |
749 double get y; | 749 double get y; |
750 int get signMask; | 750 int get signMask; |
751 Float64x2 withX(double x); | 751 Float64x2 withX(double x); |
752 Float64x2 withY(double y); | 752 Float64x2 withY(double y); |
753 Float64x2 min(Float64x2 other); | 753 Float64x2 min(Float64x2 other); |
754 Float64x2 max(Float64x2 other); | 754 Float64x2 max(Float64x2 other); |
755 Float64x2 sqrt(); | 755 Float64x2 sqrt(); |
756 } | 756 } |
OLD | NEW |