Browse Source

API doc for automatic ArrayBuffer's offset/length

pull/1229/head
Sami Vaarala 8 years ago
parent
commit
6d241860d5
  1. 5
      website/api/duk_push_buffer_object.yaml

5
website/api/duk_push_buffer_object.yaml

@ -33,7 +33,10 @@ summary: |
<p>When anything other than an <code>ArrayBuffer</code> is pushed, an
<code>ArrayBuffer</code> backing the view is automatically created.
It is accessible through the <code>buffer</code> property of the view
object.</p>
object. The ArrayBuffer's internal byteOffset will be zero so that
the ArrayBuffer's index byteOffset matches the view's index 0. The
ArrayBuffer's byteLength will be byteLength will be <code>byte_offset +
byte_length</code> so that the view range is valid for the ArrayBuffer.</p>
<p>The underlying plain buffer should normally cover the range indicated by
the <code>byte_offset</code> and <code>byte_length</code> arguments, but

Loading…
Cancel
Save