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

Side by Side Diff: lib/scalarlist/byte_arrays.dart

Issue 10958012: Workaround VM issue with library tags in builtin libraries. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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 | « lib/compiler/implementation/lib/scalarlist.dart ('k') | lib/scalarlist/scalarlist.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) 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 // TODO(ager): This should have a #library directive when the VM
6 // can use normal library structuring.
7 //
8 // #library('dart:scalarlist');
9
10 /** 5 /**
11 * 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
12 * the fixed-width integers and floating point numbers represented by 7 * the fixed-width integers and floating point numbers represented by
13 * 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
14 * external sources (such as networks or files systems), and to process 9 * external sources (such as networks or files systems), and to process
15 * large quantities of numerical data more efficiently than would be possible 10 * large quantities of numerical data more efficiently than would be possible
16 * with ordinary [List] implementations. Byte arrays can save space, by 11 * with ordinary [List] implementations. Byte arrays can save space, by
17 * eliminating the need for object headers, and time, by eliminating the 12 * eliminating the need for object headers, and time, by eliminating the
18 * 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
19 * reinterpret the bytes representing one arithmetic type as another. 14 * reinterpret the bytes representing one arithmetic type as another.
(...skipping 646 matching lines...) Expand 10 before | Expand all | Expand 10 after
666 * [start] of the region is not divisible by 8. If, however, [array] 661 * [start] of the region is not divisible by 8. If, however, [array]
667 * is a view of another byte array, this constructor will throw 662 * is a view of another byte array, this constructor will throw
668 * [IllegalArgumentException] if the implicit starting position in the 663 * [IllegalArgumentException] if the implicit starting position in the
669 * "ultimately backing" byte array is not divisible by 8. In plain terms, 664 * "ultimately backing" byte array is not divisible by 8. In plain terms,
670 * this constructor throws [IllegalArgumentException] if the specified 665 * this constructor throws [IllegalArgumentException] if the specified
671 * region does not contain an integral number of "float64s," or if it 666 * region does not contain an integral number of "float64s," or if it
672 * is not "float64-aligned." 667 * is not "float64-aligned."
673 */ 668 */
674 external Float64List.view(ByteArray array, [int start, int length]); 669 external Float64List.view(ByteArray array, [int start, int length]);
675 } 670 }
OLDNEW
« no previous file with comments | « lib/compiler/implementation/lib/scalarlist.dart ('k') | lib/scalarlist/scalarlist.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698