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