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.
15 lines
671 B
15 lines
671 B
define: DUK_USE_BUFFEROBJECT_SUPPORT
|
|
introduced: 1.3.0
|
|
default: true
|
|
tags:
|
|
- ecmascript2015
|
|
description: >
|
|
Enable support for Khronos/ES6 typed arrays and Node.js Buffer objects.
|
|
|
|
When disabled, Duktape custom plain buffer type is present and functional
|
|
in the C API. Plain buffers have virtual properties and you can read/write
|
|
buffer contents in ECMAScript code. Plain buffers will still inherit from
|
|
ArrayBuffer.prototype, but none of the ECMAScript buffer related bindings
|
|
will work. This includes all ArrayBuffer, typed array, and Node.js Buffer
|
|
methods. Native bindings which produce plain buffer results (like
|
|
Duktape.dec()) will still work.
|
|
|