Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Side by Side Diff: runtime/lib/typeddata.dart

Issue 12549021: Fix typo in typeddate.dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | tests/standalone/typed_data_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // patch classes for Int8List ..... Float64List and ByteData implementations. 5 // patch classes for Int8List ..... Float64List and ByteData implementations.
6 6
7 patch class Int8List { 7 patch class Int8List {
8 /* patch */ factory Int8List(int length) { 8 /* patch */ factory Int8List(int length) {
9 return new _Int8Array(length); 9 return new _Int8Array(length);
10 } 10 }
(...skipping 2359 matching lines...) Expand 10 before | Expand all | Expand 10 after
2370 return _typeddata._getInt32(_offset + byteOffset); 2370 return _typeddata._getInt32(_offset + byteOffset);
2371 } 2371 }
2372 void setInt32(int byteOffset, int value) { 2372 void setInt32(int byteOffset, int value) {
2373 _typeddata._setInt32(_offset + byteOffset, value); 2373 _typeddata._setInt32(_offset + byteOffset, value);
2374 } 2374 }
2375 2375
2376 int getUint32(int byteOffset) { 2376 int getUint32(int byteOffset) {
2377 return _typeddata._getUint32(_offset + byteOffset); 2377 return _typeddata._getUint32(_offset + byteOffset);
2378 } 2378 }
2379 void setUint32(int byteOffset, int value) { 2379 void setUint32(int byteOffset, int value) {
2380 _typedata._setUint32(_offset + byteOffset, value); 2380 _typeddata._setUint32(_offset + byteOffset, value);
2381 } 2381 }
2382 2382
2383 int getInt64(int byteOffset) { 2383 int getInt64(int byteOffset) {
2384 return _typedata._getInt64(_offset + byteOffset); 2384 return _typeddata._getInt64(_offset + byteOffset);
2385 } 2385 }
2386 void setInt64(int byteOffset, int value) { 2386 void setInt64(int byteOffset, int value) {
2387 _typedata._setInt64(_offset + byteOffset, value); 2387 _typeddata._setInt64(_offset + byteOffset, value);
2388 } 2388 }
2389 2389
2390 int getUint64(int byteOffset) { 2390 int getUint64(int byteOffset) {
2391 return _typedata._getUint64(_offset + byteOffset); 2391 return _typeddata._getUint64(_offset + byteOffset);
2392 } 2392 }
2393 void setUint64(int byteOffset, int value) { 2393 void setUint64(int byteOffset, int value) {
2394 _typedata._setUint64(_offset + byteOffset, value); 2394 _typeddata._setUint64(_offset + byteOffset, value);
2395 } 2395 }
2396 2396
2397 double getFloat32(int byteOffset) { 2397 double getFloat32(int byteOffset) {
2398 return _typedata._getFloat32(_offset + byteOffset); 2398 return _typeddata._getFloat32(_offset + byteOffset);
2399 } 2399 }
2400 void setFloat32(int byteOffset, double value) { 2400 void setFloat32(int byteOffset, double value) {
2401 _typedata._setFloat32(_offset + byteOffset, value); 2401 _typeddata._setFloat32(_offset + byteOffset, value);
2402 } 2402 }
2403 2403
2404 double getFloat64(int byteOffset) { 2404 double getFloat64(int byteOffset) {
2405 return _typedata._getFloat64(_offset + byteOffset); 2405 return _typeddata._getFloat64(_offset + byteOffset);
2406 } 2406 }
2407 void setFloat64(int byteOffset, double value) { 2407 void setFloat64(int byteOffset, double value) {
2408 _typedata._setFloat64(_offset + byteOffset, value); 2408 _typeddata._setFloat64(_offset + byteOffset, value);
2409 } 2409 }
2410 2410
2411 final TypedData _typeddata; 2411 final TypedData _typeddata;
2412 final int _offset; 2412 final int _offset;
2413 final int _length; 2413 final int _length;
2414 } 2414 }
2415 2415
2416 2416
2417 // Top level utility methods. 2417 // Top level utility methods.
2418 int _toInt(int value, int mask) { 2418 int _toInt(int value, int mask) {
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
2481 } 2481 }
2482 } 2482 }
2483 2483
2484 2484
2485 int _defaultIfNull(object, value) { 2485 int _defaultIfNull(object, value) {
2486 if (object == null) { 2486 if (object == null) {
2487 return value; 2487 return value;
2488 } 2488 }
2489 return object; 2489 return object;
2490 } 2490 }
OLDNEW
« no previous file with comments | « no previous file | tests/standalone/typed_data_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698