jswrap_arraybuffer.h 963 B

12345678910111213141516171819
  1. /*
  2. * This file is part of Espruino, a JavaScript interpreter for Microcontrollers
  3. *
  4. * Copyright (C) 2013 Gordon Williams <gw@pur3.co.uk>
  5. *
  6. * This Source Code Form is subject to the terms of the Mozilla Public
  7. * License, v. 2.0. If a copy of the MPL was not distributed with this
  8. * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  9. *
  10. * ----------------------------------------------------------------------------
  11. * JavaScript methods and functions in the global namespace
  12. * ----------------------------------------------------------------------------
  13. */
  14. #include "jsvar.h"
  15. JsVar *jswrap_arraybuffer_constructor(JsVarInt byteLength);
  16. JsVar *jswrap_typedarray_constructor(JsVarDataArrayBufferViewType type, JsVar *arr, JsVarInt byteOffset, JsVarInt length);
  17. JsVarFloat jswrap_arraybufferview_interpolate(JsVar *parent, JsVarFloat index);
  18. JsVarFloat jswrap_arraybufferview_interpolate2d(JsVar *parent, JsVarInt width, JsVarFloat x, JsVarFloat y);