| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 part of dart.scalarlist; |
| 6 |
| 5 /** | 7 /** |
| 6 * A random-access sequence of bytes that also provides random access to | 8 * A random-access sequence of bytes that also provides random access to |
| 7 * the fixed-width integers and floating point numbers represented by | 9 * the fixed-width integers and floating point numbers represented by |
| 8 * those bytes. Byte arrays may be used to pack and unpack data from | 10 * those bytes. Byte arrays may be used to pack and unpack data from |
| 9 * external sources (such as networks or files systems), and to process | 11 * external sources (such as networks or files systems), and to process |
| 10 * large quantities of numerical data more efficiently than would be possible | 12 * large quantities of numerical data more efficiently than would be possible |
| 11 * with ordinary [List] implementations. Byte arrays can save space, by | 13 * with ordinary [List] implementations. Byte arrays can save space, by |
| 12 * eliminating the need for object headers, and time, by eliminating the | 14 * eliminating the need for object headers, and time, by eliminating the |
| 13 * need for data copies. Finally, Byte arrays may be used to intentionally | 15 * need for data copies. Finally, Byte arrays may be used to intentionally |
| 14 * reinterpret the bytes representing one arithmetic type as another. | 16 * reinterpret the bytes representing one arithmetic type as another. |
| (...skipping 678 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 693 * is a view of another byte array, this constructor will throw | 695 * is a view of another byte array, this constructor will throw |
| 694 * [ArgumentError] if the implicit starting position in the | 696 * [ArgumentError] if the implicit starting position in the |
| 695 * "ultimately backing" byte array is not divisible by 8. In plain terms, | 697 * "ultimately backing" byte array is not divisible by 8. In plain terms, |
| 696 * this constructor throws [ArgumentError] if the specified | 698 * this constructor throws [ArgumentError] if the specified |
| 697 * region does not contain an integral number of "float64s," or if it | 699 * region does not contain an integral number of "float64s," or if it |
| 698 * is not "float64-aligned." | 700 * is not "float64-aligned." |
| 699 */ | 701 */ |
| 700 external factory Float64List.view(ByteArray array, | 702 external factory Float64List.view(ByteArray array, |
| 701 [int start = 0, int length]); | 703 [int start = 0, int length]); |
| 702 } | 704 } |
| OLD | NEW |