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

Unified Diff: lib/typed_buffers.dart

Issue 1420353003: Update the doc comment format. (Closed) Base URL: git@github.com:dart-lang/typed_data@master
Patch Set: Created 5 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | lib/typed_data.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/typed_buffers.dart
diff --git a/lib/typed_buffers.dart b/lib/typed_buffers.dart
index ebf5766f87a35bcc68545312c5aa1f21e1d3c027..b9e59c4b908abf521f4472281eaafc07e290d568 100644
--- a/lib/typed_buffers.dart
+++ b/lib/typed_buffers.dart
@@ -2,17 +2,15 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-/**
- * Growable typed-data lists.
- *
- * These lists works just as a typed-data list, except that they are growable.
- * They use an underlying buffer, and when that buffer becomes too small, it
- * is replaced by a new buffer.
- *
- * That means that using the [TypedDataView.buffer] getter is not guaranteed
- * to return the same result each time it is used, and that the buffer may
- * be larger than what the list is using.
- */
+/// Growable typed-data lists.
+///
+/// These lists works just as a typed-data list, except that they are growable.
+/// They use an underlying buffer, and when that buffer becomes too small, it
+/// is replaced by a new buffer.
+///
+/// That means that using the [TypedDataView.buffer] getter is not guaranteed
+/// to return the same result each time it is used, and that the buffer may
+/// be larger than what the list is using.
library dart.pkg.typed_data.typed_buffers;
import "dart:collection" show ListBase;
@@ -197,14 +195,12 @@ abstract class _TypedDataBuffer<E> extends ListBase<E> {
_buffer = newBuffer;
}
- /**
- * Create a bigger buffer.
- *
- * This method determines how much bigger a bigger buffer should
- * be. If [requiredCapacity] is not null, it will be at least that
- * size. It will always have at least have double the capacity of
- * the current buffer.
- */
+ /// Create a bigger buffer.
+ ///
+ /// This method determines how much bigger a bigger buffer should
+ /// be. If [requiredCapacity] is not null, it will be at least that
+ /// size. It will always have at least have double the capacity of
+ /// the current buffer.
List<E> _createBiggerBuffer(int requiredCapacity) {
int newLength = _buffer.length * 2;
if (requiredCapacity != null && newLength < requiredCapacity) {
@@ -241,14 +237,12 @@ abstract class _TypedDataBuffer<E> extends ListBase<E> {
int get offsetInBytes => _buffer.offsetInBytes;
- /**
- * Returns the underlying [ByteBuffer].
- *
- * The returned buffer may be replaced by operations that change the [length]
- * of this list.
- *
- * The buffer may be larger than [lengthInBytes] bytes, but never smaller.
- */
+ /// Returns the underlying [ByteBuffer].
+ ///
+ /// The returned buffer may be replaced by operations that change the [length]
+ /// of this list.
+ ///
+ /// The buffer may be larger than [lengthInBytes] bytes, but never smaller.
ByteBuffer get buffer => _buffer.buffer;
// Specialization for the specific type.
« no previous file with comments | « no previous file | lib/typed_data.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698