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. |