| Index: runtime/lib/typed_data.dart
|
| diff --git a/runtime/lib/typeddata.dart b/runtime/lib/typed_data.dart
|
| similarity index 96%
|
| rename from runtime/lib/typeddata.dart
|
| rename to runtime/lib/typed_data.dart
|
| index ddf79f444898c7644a78360a0e30cf623f179abb..ed7b66527db7b55e3e3050f03f2f4e17b4ade51b 100644
|
| --- a/runtime/lib/typeddata.dart
|
| +++ b/runtime/lib/typed_data.dart
|
| @@ -2191,7 +2191,7 @@ class _TypedListIterator<E> implements Iterator<E> {
|
|
|
| class _TypedListView extends _TypedListBase implements TypedData {
|
| _TypedListView(ByteBuffer _buffer, int _offset, int _length)
|
| - : _typeddata = _buffer, // This assignment is type safe.
|
| + : _typedData = _buffer, // This assignment is type safe.
|
| offsetInBytes = _offset,
|
| length = _length {
|
| }
|
| @@ -2204,10 +2204,10 @@ class _TypedListView extends _TypedListBase implements TypedData {
|
| }
|
|
|
| ByteBuffer get buffer {
|
| - return _typeddata.buffer;
|
| + return _typedData.buffer;
|
| }
|
|
|
| - final TypedData _typeddata;
|
| + final TypedData _typedData;
|
| final int offsetInBytes;
|
| final int length;
|
| }
|
| @@ -2232,7 +2232,7 @@ class _Int8ArrayView extends _TypedListView implements Int8List {
|
| if (index < 0 || index >= length) {
|
| _throwRangeError(index, length);
|
| }
|
| - return _typeddata._getInt8(offsetInBytes +
|
| + return _typedData._getInt8(offsetInBytes +
|
| (index * Int8List.BYTES_PER_ELEMENT));
|
| }
|
|
|
| @@ -2240,7 +2240,7 @@ class _Int8ArrayView extends _TypedListView implements Int8List {
|
| if (index < 0 || index >= length) {
|
| _throwRangeError(index, length);
|
| }
|
| - _typeddata._setInt8(offsetInBytes + (index * Int8List.BYTES_PER_ELEMENT),
|
| + _typedData._setInt8(offsetInBytes + (index * Int8List.BYTES_PER_ELEMENT),
|
| _toInt8(value));
|
| }
|
|
|
| @@ -2283,7 +2283,7 @@ class _Uint8ArrayView extends _TypedListView implements Uint8List {
|
| if (index < 0 || index >= length) {
|
| _throwRangeError(index, length);
|
| }
|
| - return _typeddata._getUint8(offsetInBytes +
|
| + return _typedData._getUint8(offsetInBytes +
|
| (index * Uint8List.BYTES_PER_ELEMENT));
|
| }
|
|
|
| @@ -2291,7 +2291,7 @@ class _Uint8ArrayView extends _TypedListView implements Uint8List {
|
| if (index < 0 || index >= length) {
|
| _throwRangeError(index, length);
|
| }
|
| - _typeddata._setUint8(offsetInBytes + (index * Uint8List.BYTES_PER_ELEMENT),
|
| + _typedData._setUint8(offsetInBytes + (index * Uint8List.BYTES_PER_ELEMENT),
|
| _toUint8(value));
|
| }
|
|
|
| @@ -2335,7 +2335,7 @@ class _Uint8ClampedArrayView extends _TypedListView implements Uint8ClampedList
|
| if (index < 0 || index >= length) {
|
| _throwRangeError(index, length);
|
| }
|
| - return _typeddata._getUint8(offsetInBytes +
|
| + return _typedData._getUint8(offsetInBytes +
|
| (index * Uint8List.BYTES_PER_ELEMENT));
|
| }
|
|
|
| @@ -2343,7 +2343,7 @@ class _Uint8ClampedArrayView extends _TypedListView implements Uint8ClampedList
|
| if (index < 0 || index >= length) {
|
| _throwRangeError(index, length);
|
| }
|
| - _typeddata._setUint8(offsetInBytes + (index * Uint8List.BYTES_PER_ELEMENT),
|
| + _typedData._setUint8(offsetInBytes + (index * Uint8List.BYTES_PER_ELEMENT),
|
| _toClampedUint8(value));
|
| }
|
|
|
| @@ -2386,7 +2386,7 @@ class _Int16ArrayView extends _TypedListView implements Int16List {
|
| if (index < 0 || index >= length) {
|
| _throwRangeError(index, length);
|
| }
|
| - return _typeddata._getInt16(offsetInBytes +
|
| + return _typedData._getInt16(offsetInBytes +
|
| (index * Int16List.BYTES_PER_ELEMENT));
|
| }
|
|
|
| @@ -2394,7 +2394,7 @@ class _Int16ArrayView extends _TypedListView implements Int16List {
|
| if (index < 0 || index >= length) {
|
| _throwRangeError(index, length);
|
| }
|
| - _typeddata._setInt16(offsetInBytes + (index * Int16List.BYTES_PER_ELEMENT),
|
| + _typedData._setInt16(offsetInBytes + (index * Int16List.BYTES_PER_ELEMENT),
|
| _toInt16(value));
|
| }
|
|
|
| @@ -2437,7 +2437,7 @@ class _Uint16ArrayView extends _TypedListView implements Uint16List {
|
| if (index < 0 || index >= length) {
|
| _throwRangeError(index, length);
|
| }
|
| - return _typeddata._getUint16(offsetInBytes +
|
| + return _typedData._getUint16(offsetInBytes +
|
| (index * Uint16List.BYTES_PER_ELEMENT));
|
| }
|
|
|
| @@ -2445,7 +2445,7 @@ class _Uint16ArrayView extends _TypedListView implements Uint16List {
|
| if (index < 0 || index >= length) {
|
| _throwRangeError(index, length);
|
| }
|
| - _typeddata._setUint16(offsetInBytes + (index * Uint16List.BYTES_PER_ELEMENT),
|
| + _typedData._setUint16(offsetInBytes + (index * Uint16List.BYTES_PER_ELEMENT),
|
| _toUint16(value));
|
| }
|
|
|
| @@ -2488,7 +2488,7 @@ class _Int32ArrayView extends _TypedListView implements Int32List {
|
| if (index < 0 || index >= length) {
|
| _throwRangeError(index, length);
|
| }
|
| - return _typeddata._getInt32(offsetInBytes +
|
| + return _typedData._getInt32(offsetInBytes +
|
| (index * Int32List.BYTES_PER_ELEMENT));
|
| }
|
|
|
| @@ -2496,7 +2496,7 @@ class _Int32ArrayView extends _TypedListView implements Int32List {
|
| if (index < 0 || index >= length) {
|
| _throwRangeError(index, length);
|
| }
|
| - _typeddata._setInt32(offsetInBytes + (index * Int32List.BYTES_PER_ELEMENT),
|
| + _typedData._setInt32(offsetInBytes + (index * Int32List.BYTES_PER_ELEMENT),
|
| _toInt32(value));
|
| }
|
|
|
| @@ -2539,7 +2539,7 @@ class _Uint32ArrayView extends _TypedListView implements Uint32List {
|
| if (index < 0 || index >= length) {
|
| _throwRangeError(index, length);
|
| }
|
| - return _typeddata._getUint32(offsetInBytes +
|
| + return _typedData._getUint32(offsetInBytes +
|
| (index * Uint32List.BYTES_PER_ELEMENT));
|
| }
|
|
|
| @@ -2547,7 +2547,7 @@ class _Uint32ArrayView extends _TypedListView implements Uint32List {
|
| if (index < 0 || index >= length) {
|
| _throwRangeError(index, length);
|
| }
|
| - _typeddata._setUint32(offsetInBytes + (index * Uint32List.BYTES_PER_ELEMENT),
|
| + _typedData._setUint32(offsetInBytes + (index * Uint32List.BYTES_PER_ELEMENT),
|
| _toUint32(value));
|
| }
|
|
|
| @@ -2590,7 +2590,7 @@ class _Int64ArrayView extends _TypedListView implements Int64List {
|
| if (index < 0 || index >= length) {
|
| _throwRangeError(index, length);
|
| }
|
| - return _typeddata._getInt64(offsetInBytes +
|
| + return _typedData._getInt64(offsetInBytes +
|
| (index * Int64List.BYTES_PER_ELEMENT));
|
| }
|
|
|
| @@ -2598,7 +2598,7 @@ class _Int64ArrayView extends _TypedListView implements Int64List {
|
| if (index < 0 || index >= length) {
|
| _throwRangeError(index, length);
|
| }
|
| - _typeddata._setInt64(offsetInBytes + (index * Int64List.BYTES_PER_ELEMENT),
|
| + _typedData._setInt64(offsetInBytes + (index * Int64List.BYTES_PER_ELEMENT),
|
| _toInt64(value));
|
| }
|
|
|
| @@ -2641,7 +2641,7 @@ class _Uint64ArrayView extends _TypedListView implements Uint64List {
|
| if (index < 0 || index >= length) {
|
| _throwRangeError(index, length);
|
| }
|
| - return _typeddata._getUint64(offsetInBytes +
|
| + return _typedData._getUint64(offsetInBytes +
|
| (index * Uint64List.BYTES_PER_ELEMENT));
|
| }
|
|
|
| @@ -2649,7 +2649,7 @@ class _Uint64ArrayView extends _TypedListView implements Uint64List {
|
| if (index < 0 || index >= length) {
|
| _throwRangeError(index, length);
|
| }
|
| - _typeddata._setUint64(offsetInBytes + (index * Uint64List.BYTES_PER_ELEMENT),
|
| + _typedData._setUint64(offsetInBytes + (index * Uint64List.BYTES_PER_ELEMENT),
|
| _toUint64(value));
|
| }
|
|
|
| @@ -2692,7 +2692,7 @@ class _Float32ArrayView extends _TypedListView implements Float32List {
|
| if (index < 0 || index >= length) {
|
| _throwRangeError(index, length);
|
| }
|
| - return _typeddata._getFloat32(offsetInBytes +
|
| + return _typedData._getFloat32(offsetInBytes +
|
| (index * Float32List.BYTES_PER_ELEMENT));
|
| }
|
|
|
| @@ -2700,7 +2700,7 @@ class _Float32ArrayView extends _TypedListView implements Float32List {
|
| if (index < 0 || index >= length) {
|
| _throwRangeError(index, length);
|
| }
|
| - _typeddata._setFloat32(offsetInBytes +
|
| + _typedData._setFloat32(offsetInBytes +
|
| (index * Float32List.BYTES_PER_ELEMENT), value);
|
| }
|
|
|
| @@ -2743,7 +2743,7 @@ class _Float64ArrayView extends _TypedListView implements Float64List {
|
| if (index < 0 || index >= length) {
|
| _throwRangeError(index, length);
|
| }
|
| - return _typeddata._getFloat64(offsetInBytes +
|
| + return _typedData._getFloat64(offsetInBytes +
|
| (index * Float64List.BYTES_PER_ELEMENT));
|
| }
|
|
|
| @@ -2751,7 +2751,7 @@ class _Float64ArrayView extends _TypedListView implements Float64List {
|
| if (index < 0 || index >= length) {
|
| _throwRangeError(index, length);
|
| }
|
| - _typeddata._setFloat64(offsetInBytes +
|
| + _typedData._setFloat64(offsetInBytes +
|
| (index * Float64List.BYTES_PER_ELEMENT), value);
|
| }
|
|
|
| @@ -2794,7 +2794,7 @@ class _Float32x4ArrayView extends _TypedListView implements Float32x4List {
|
| if (index < 0 || index >= length) {
|
| _throwRangeError(index, length);
|
| }
|
| - return _typeddata._getFloat32x4(offsetInBytes +
|
| + return _typedData._getFloat32x4(offsetInBytes +
|
| (index * Float32x4List.BYTES_PER_ELEMENT));
|
| }
|
|
|
| @@ -2802,7 +2802,7 @@ class _Float32x4ArrayView extends _TypedListView implements Float32x4List {
|
| if (index < 0 || index >= length) {
|
| _throwRangeError(index, length);
|
| }
|
| - _typeddata._setFloat32x4(offsetInBytes +
|
| + _typedData._setFloat32x4(offsetInBytes +
|
| (index * Float32x4List.BYTES_PER_ELEMENT), value);
|
| }
|
|
|
| @@ -2828,7 +2828,7 @@ class _Float32x4ArrayView extends _TypedListView implements Float32x4List {
|
|
|
| class _ByteDataView implements ByteData {
|
| _ByteDataView(ByteBuffer _buffer, int _offsetInBytes, int _lengthInBytes)
|
| - : _typeddata = _buffer, // _buffer is guaranteed to be a TypedData here.
|
| + : _typedData = _buffer, // _buffer is guaranteed to be a TypedData here.
|
| _offset = _offsetInBytes,
|
| length = _lengthInBytes {
|
| _rangeCheck(_buffer.lengthInBytes, _offset, length);
|
| @@ -2838,7 +2838,7 @@ class _ByteDataView implements ByteData {
|
| // Method(s) implementing TypedData interface.
|
|
|
| ByteBuffer get buffer {
|
| - return _typeddata.buffer;
|
| + return _typedData.buffer;
|
| }
|
|
|
| int get lengthInBytes {
|
| @@ -2855,33 +2855,33 @@ class _ByteDataView implements ByteData {
|
| if (byteOffset < 0 || byteOffset >= length) {
|
| _throwRangeError(byteOffset, length);
|
| }
|
| - return _typeddata._getInt8(_offset + byteOffset);
|
| + return _typedData._getInt8(_offset + byteOffset);
|
| }
|
| void setInt8(int byteOffset, int value) {
|
| if (byteOffset < 0 || byteOffset >= length) {
|
| _throwRangeError(byteOffset, length);
|
| }
|
| - _typeddata._setInt8(_offset + byteOffset, _toInt8(value));
|
| + _typedData._setInt8(_offset + byteOffset, _toInt8(value));
|
| }
|
|
|
| int getUint8(int byteOffset) {
|
| if (byteOffset < 0 || byteOffset >= length) {
|
| _throwRangeError(byteOffset, length);
|
| }
|
| - return _typeddata._getUint8(_offset + byteOffset);
|
| + return _typedData._getUint8(_offset + byteOffset);
|
| }
|
| void setUint8(int byteOffset, int value) {
|
| if (byteOffset < 0 || byteOffset >= length) {
|
| _throwRangeError(byteOffset, length);
|
| }
|
| - _typeddata._setUint8(_offset + byteOffset, _toUint8(value));
|
| + _typedData._setUint8(_offset + byteOffset, _toUint8(value));
|
| }
|
|
|
| int getInt16(int byteOffset, [Endianness endian = Endianness.BIG_ENDIAN]) {
|
| if (byteOffset < 0 || byteOffset >= length) {
|
| _throwRangeError(byteOffset, length);
|
| }
|
| - var result = _typeddata._getInt16(_offset + byteOffset);
|
| + var result = _typedData._getInt16(_offset + byteOffset);
|
| if (identical(endian, Endianness.HOST_ENDIAN)) {
|
| return result;
|
| }
|
| @@ -2897,14 +2897,14 @@ class _ByteDataView implements ByteData {
|
| if (!identical(endian, Endianness.HOST_ENDIAN)) {
|
| set_value = _toEndianInt16(set_value, endian._littleEndian);
|
| }
|
| - _typeddata._setInt16(_offset + byteOffset, set_value);
|
| + _typedData._setInt16(_offset + byteOffset, set_value);
|
| }
|
|
|
| int getUint16(int byteOffset, [Endianness endian = Endianness.BIG_ENDIAN]) {
|
| if (byteOffset < 0 || byteOffset >= length) {
|
| _throwRangeError(byteOffset, length);
|
| }
|
| - var result = _typeddata._getUint16(_offset + byteOffset);
|
| + var result = _typedData._getUint16(_offset + byteOffset);
|
| if (identical(endian, Endianness.HOST_ENDIAN)) {
|
| return result;
|
| }
|
| @@ -2920,14 +2920,14 @@ class _ByteDataView implements ByteData {
|
| if (!identical(endian, Endianness.HOST_ENDIAN)) {
|
| set_value = _toEndianUint16(set_value, endian._littleEndian);
|
| }
|
| - _typeddata._setUint16(_offset + byteOffset, set_value);
|
| + _typedData._setUint16(_offset + byteOffset, set_value);
|
| }
|
|
|
| int getInt32(int byteOffset, [Endianness endian = Endianness.BIG_ENDIAN]) {
|
| if (byteOffset < 0 || byteOffset >= length) {
|
| _throwRangeError(byteOffset, length);
|
| }
|
| - var result = _typeddata._getInt32(_offset + byteOffset);
|
| + var result = _typedData._getInt32(_offset + byteOffset);
|
| if (identical(endian, Endianness.HOST_ENDIAN)) {
|
| return result;
|
| }
|
| @@ -2943,14 +2943,14 @@ class _ByteDataView implements ByteData {
|
| if (!identical(endian, Endianness.HOST_ENDIAN)) {
|
| set_value = _toEndianInt32(set_value, endian._littleEndian);
|
| }
|
| - _typeddata._setInt32(_offset + byteOffset, set_value);
|
| + _typedData._setInt32(_offset + byteOffset, set_value);
|
| }
|
|
|
| int getUint32(int byteOffset, [Endianness endian = Endianness.BIG_ENDIAN]) {
|
| if (byteOffset < 0 || byteOffset >= length) {
|
| _throwRangeError(byteOffset, length);
|
| }
|
| - var result = _typeddata._getUint32(_offset + byteOffset);
|
| + var result = _typedData._getUint32(_offset + byteOffset);
|
| if (identical(endian, Endianness.HOST_ENDIAN)) {
|
| return result;
|
| }
|
| @@ -2966,14 +2966,14 @@ class _ByteDataView implements ByteData {
|
| if (!identical(endian, Endianness.HOST_ENDIAN)) {
|
| set_value = _toEndianUint32(set_value, endian._littleEndian);
|
| }
|
| - _typeddata._setUint32(_offset + byteOffset, set_value);
|
| + _typedData._setUint32(_offset + byteOffset, set_value);
|
| }
|
|
|
| int getInt64(int byteOffset, [Endianness endian = Endianness.BIG_ENDIAN]) {
|
| if (byteOffset < 0 || byteOffset >= length) {
|
| _throwRangeError(byteOffset, length);
|
| }
|
| - var result = _typeddata._getInt64(_offset + byteOffset);
|
| + var result = _typedData._getInt64(_offset + byteOffset);
|
| if (identical(endian, Endianness.HOST_ENDIAN)) {
|
| return result;
|
| }
|
| @@ -2989,14 +2989,14 @@ class _ByteDataView implements ByteData {
|
| if (!identical(endian, Endianness.HOST_ENDIAN)) {
|
| set_value = _toEndianInt64(set_value, endian._littleEndian);
|
| }
|
| - _typeddata._setInt64(_offset + byteOffset, set_value);
|
| + _typedData._setInt64(_offset + byteOffset, set_value);
|
| }
|
|
|
| int getUint64(int byteOffset, [Endianness endian = Endianness.BIG_ENDIAN]) {
|
| if (byteOffset < 0 || byteOffset >= length) {
|
| _throwRangeError(byteOffset, length);
|
| }
|
| - var result = _typeddata._getUint64(_offset + byteOffset);
|
| + var result = _typedData._getUint64(_offset + byteOffset);
|
| if (identical(endian, Endianness.HOST_ENDIAN)) {
|
| return result;
|
| }
|
| @@ -3012,7 +3012,7 @@ class _ByteDataView implements ByteData {
|
| if (!identical(endian, Endianness.HOST_ENDIAN)) {
|
| set_value = _toEndianUint64(set_value, endian._littleEndian);
|
| }
|
| - _typeddata._setUint64(_offset + byteOffset, set_value);
|
| + _typedData._setUint64(_offset + byteOffset, set_value);
|
| }
|
|
|
| double getFloat32(int byteOffset,
|
| @@ -3020,7 +3020,7 @@ class _ByteDataView implements ByteData {
|
| if (byteOffset < 0 || byteOffset >= length) {
|
| _throwRangeError(byteOffset, length);
|
| }
|
| - var result = _typeddata._getFloat32(_offset + byteOffset);
|
| + var result = _typedData._getFloat32(_offset + byteOffset);
|
| if (identical(endian, Endianness.HOST_ENDIAN)) {
|
| return result;
|
| }
|
| @@ -3036,7 +3036,7 @@ class _ByteDataView implements ByteData {
|
| if (!identical(endian, Endianness.HOST_ENDIAN)) {
|
| set_value = _toEndianFloat32(set_value, endian._littleEndian);
|
| }
|
| - _typeddata._setFloat32(_offset + byteOffset, set_value);
|
| + _typedData._setFloat32(_offset + byteOffset, set_value);
|
| }
|
|
|
| double getFloat64(int byteOffset,
|
| @@ -3044,7 +3044,7 @@ class _ByteDataView implements ByteData {
|
| if (byteOffset < 0 || byteOffset >= length) {
|
| _throwRangeError(byteOffset, length);
|
| }
|
| - var result = _typeddata._getFloat64(_offset + byteOffset);
|
| + var result = _typedData._getFloat64(_offset + byteOffset);
|
| if (identical(endian, Endianness.HOST_ENDIAN)) {
|
| return result;
|
| }
|
| @@ -3060,7 +3060,7 @@ class _ByteDataView implements ByteData {
|
| if (!identical(endian, Endianness.HOST_ENDIAN)) {
|
| set_value = _toEndianFloat64(set_value, endian._littleEndian);
|
| }
|
| - _typeddata._setFloat64(_offset + byteOffset, set_value);
|
| + _typedData._setFloat64(_offset + byteOffset, set_value);
|
| }
|
|
|
| Float32x4 getFloat32x4(int byteOffset,
|
| @@ -3069,7 +3069,7 @@ class _ByteDataView implements ByteData {
|
| _throwRangeError(byteOffset, length);
|
| }
|
| // TODO(johnmccutchan) : Need to resolve this for endianity.
|
| - return _typeddata._getFloat32x4(_offset + byteOffset);
|
| + return _typedData._getFloat32x4(_offset + byteOffset);
|
| }
|
| void setFloat32x4(int byteOffset,
|
| Float32x4 value,
|
| @@ -3078,7 +3078,7 @@ class _ByteDataView implements ByteData {
|
| _throwRangeError(byteOffset, length);
|
| }
|
| // TODO(johnmccutchan) : Need to resolve this for endianity.
|
| - _typeddata._setFloat32x4(_offset + byteOffset, value);
|
| + _typedData._setFloat32x4(_offset + byteOffset, value);
|
|
|
| }
|
|
|
| @@ -3103,7 +3103,7 @@ class _ByteDataView implements ByteData {
|
| native "ByteData_ToEndianFloat64";
|
|
|
|
|
| - final TypedData _typeddata;
|
| + final TypedData _typedData;
|
| final int _offset;
|
| final int length;
|
| }
|
|
|