Browse Source

Resolve buffers.rst FIXMEs

cyclic-jx-gh331
Sami Vaarala 9 years ago
parent
commit
d8b289abb8
  1. 13
      doc/buffers.rst

13
doc/buffers.rst

@ -351,6 +351,7 @@ As a general rule:
Buffer() accepts a Duktape.Buffer as an input. Buffer() accepts a Duktape.Buffer as an input.
* A plain Duktape buffer is accepted as if it was coerced to a Duktape.Buffer. * A plain Duktape buffer is accepted as if it was coerced to a Duktape.Buffer.
(This is not always the case now, e.g. for typed array constructors.)
This general rules is complicated by a few practical issues: This general rules is complicated by a few practical issues:
@ -362,15 +363,17 @@ This general rules is complicated by a few practical issues:
coerced to a plain buffer value without copying, as the extra offset coerced to a plain buffer value without copying, as the extra offset
and length information is not supported for plain buffer values. and length information is not supported for plain buffer values.
**FIXME: elaborate behavior a bit more here, and provide references to The current mixing behavior is described in Duktape Wiki:
testcases providing concrete examples.**
* http://wiki.duktape.org/HowtoBuffers.html
Buffer values in the Duktape C API Buffer values in the Duktape C API
---------------------------------- ----------------------------------
**FIXME: discuss how plain buffers and buffer objects work in the C API. The C API for plain buffer and buffer object handling is described in
This is important for practical C code which should be able to consume Duktape Wiki:
different buffer values more or less transparently.**
* http://wiki.duktape.org/HowtoBuffers.html
Node.js Buffer notes Node.js Buffer notes
==================== ====================

Loading…
Cancel
Save