diff options
| author | geniusgogo <[email protected]> | 2014-02-25 01:47:49 +0800 |
|---|---|---|
| committer | geniusgogo <[email protected]> | 2014-02-25 01:47:49 +0800 |
| commit | 121bb5fcdfb3bc5f3586a0937e1b24885236b53d (patch) | |
| tree | 1e8451ca826129884029b919c707d21159aa8c29 /components/external/espruino/src/jswrap_arraybuffer.h | |
| parent | 7255137b0a8cc1bda57d24d3cf1942550252f7ea (diff) | |
add JavaScript Interpreter
Diffstat (limited to 'components/external/espruino/src/jswrap_arraybuffer.h')
| -rw-r--r-- | components/external/espruino/src/jswrap_arraybuffer.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/components/external/espruino/src/jswrap_arraybuffer.h b/components/external/espruino/src/jswrap_arraybuffer.h new file mode 100644 index 0000000000..e318aa992c --- /dev/null +++ b/components/external/espruino/src/jswrap_arraybuffer.h @@ -0,0 +1,19 @@ +/* + * This file is part of Espruino, a JavaScript interpreter for Microcontrollers + * + * Copyright (C) 2013 Gordon Williams <[email protected]> + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * ---------------------------------------------------------------------------- + * JavaScript methods and functions in the global namespace + * ---------------------------------------------------------------------------- + */ +#include "jsvar.h" + +JsVar *jswrap_arraybuffer_constructor(JsVarInt byteLength); +JsVar *jswrap_typedarray_constructor(JsVarDataArrayBufferViewType type, JsVar *arr, JsVarInt byteOffset, JsVarInt length); +JsVarFloat jswrap_arraybufferview_interpolate(JsVar *parent, JsVarFloat index); +JsVarFloat jswrap_arraybufferview_interpolate2d(JsVar *parent, JsVarInt width, JsVarFloat x, JsVarFloat y); |
