mirror of https://github.com/svaarala/duktape.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
524 B
9 lines
524 B
<div class="note">
|
|
There is no reliable way to distinguish a zero-size buffer from a non-buffer
|
|
based on the return values alone: a <code>NULL</code> with zero size is returned
|
|
for a non-buffer. The same values may be returned for a zero-size buffer (although
|
|
it is also possible that a non-<code>NULL</code> pointer is returned). Use
|
|
<code><a href="#duk_is_buffer">duk_is_buffer()</a></code> or
|
|
<code><a href="#duk_is_buffer_data">duk_is_buffer_data()</a></code> or
|
|
when type checking a buffer or a buffer object.
|
|
</div>
|
|
|