File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -246,9 +246,15 @@ class JBuffer extends JObject {
246
246
247
247
/// The array that backs this buffer.
248
248
///
249
+ /// Note that the first element of the buffer starts at element [arrayOffset]
250
+ /// of the backing array.
251
+ ///
249
252
/// Concrete subclasses like [JByteBuffer] provide more strongly-typed return
250
253
/// values for this method.
251
254
///
255
+ /// Invoke the [hasArray] method before invoking this method in order to
256
+ /// ensure that this buffer has an accessible backing array.
257
+ ///
252
258
/// Throws:
253
259
/// * `ReadOnlyBufferException` - If this buffer is backed by an array but is
254
260
/// read-only
@@ -263,6 +269,9 @@ class JBuffer extends JObject {
263
269
/// The offset within this buffer's backing array of the first element
264
270
/// of the buffer.
265
271
///
272
+ /// Invoke the [hasArray] method before invoking this method in order to
273
+ /// ensure that this buffer has an accessible backing array.
274
+ ///
266
275
/// Throws:
267
276
/// * `ReadOnlyBufferException` - If this buffer is backed by an array but is
268
277
/// read-only
You can’t perform that action at this time.
0 commit comments