OVMS3/OVMS.V3/components/duktape/config/config-options/DUK_USE_BUFFEROBJECT_SUPPORT.yaml

16 lines
671 B
YAML

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.