Home
last modified time | relevance | path

Searched refs:arraybuffer (Results 1 – 24 of 24) sorted by relevance

/third_party/jerryscript/tests/unit-core/
Dtest-arraybuffer.c82 jerry_value_t arraybuffer = jerry_eval (eval_arraybuffer_src, in test_read_with_offset() local
86 TEST_ASSERT (!jerry_value_is_error (arraybuffer)); in test_read_with_offset()
87 TEST_ASSERT (jerry_value_is_arraybuffer (arraybuffer)); in test_read_with_offset()
88 TEST_ASSERT (jerry_get_arraybuffer_byte_length (arraybuffer) == 15); in test_read_with_offset()
94 jerry_length_t copied = jerry_arraybuffer_read (arraybuffer, offset, buffer, 20); in test_read_with_offset()
103 jerry_release_value (arraybuffer); in test_read_with_offset()
118 jerry_value_t arraybuffer = jerry_eval (eval_arraybuffer_src, in test_write_with_offset() local
122 TEST_ASSERT (!jerry_value_is_error (arraybuffer)); in test_write_with_offset()
123 TEST_ASSERT (jerry_value_is_arraybuffer (arraybuffer)); in test_write_with_offset()
124 TEST_ASSERT (jerry_get_arraybuffer_byte_length (arraybuffer) == 15); in test_write_with_offset()
[all …]
Dtest-dataview.c36 jerry_value_t arraybuffer = jerry_create_arraybuffer (16); in main() local
37 jerry_value_t view1 = jerry_create_dataview (arraybuffer, 0, 16); in main()
44 TEST_ASSERT (jerry_binary_operation (JERRY_BIN_OP_STRICT_EQUAL, internal_buffer, arraybuffer)); in main()
49 jerry_value_t view2 = jerry_create_dataview (arraybuffer, 12, 4); in main()
53 TEST_ASSERT (jerry_binary_operation (JERRY_BIN_OP_STRICT_EQUAL, internal_buffer, arraybuffer)); in main()
67 jerry_value_t view4 = jerry_create_dataview (arraybuffer, 20, 10); in main()
98 jerry_release_value (arraybuffer); in main()
Dtest-typedarray.c99 jerry_value_t arraybuffer = jerry_get_typedarray_buffer (typedarray, &byte_offset, &byte_length); in test_typedarray_info() local
100 TEST_ASSERT (jerry_value_is_arraybuffer (arraybuffer)); in test_typedarray_info()
105 jerry_release_value (arraybuffer); in test_typedarray_info()
219 jerry_value_t arraybuffer; in test_typedarray_complex_creation() local
223 arraybuffer = jerry_create_arraybuffer_external (arraybuffer_size, buffer_ext, NULL); in test_typedarray_complex_creation()
227 arraybuffer = jerry_create_arraybuffer (arraybuffer_size); in test_typedarray_complex_creation()
237 arraybuffer, in test_typedarray_complex_creation()
244 jerry_release_value (arraybuffer); in test_typedarray_complex_creation()
423 jerry_value_t arraybuffer = jerry_create_arraybuffer_external (length, buf, NULL); in test_detached_arraybuffer() local
424 TEST_ASSERT (!jerry_value_is_error (arraybuffer)); in test_detached_arraybuffer()
[all …]
/third_party/node/test/js-native-api/test_dataview/
Dtest_dataview.c13 napi_value arraybuffer = args[0]; in CreateDataView() local
15 NAPI_CALL(env, napi_typeof(env, arraybuffer, &valuetype0)); in CreateDataView()
21 NAPI_CALL(env, napi_is_arraybuffer(env, arraybuffer, &is_arraybuffer)); in CreateDataView()
46 napi_create_dataview(env, length, arraybuffer, in CreateDataView()
/third_party/node/test/js-native-api/test_typedarray/
Dtest_typedarray.c114 napi_value arraybuffer; in NullArrayBuffer() local
116 napi_create_external_arraybuffer(env, data, 0, NULL, NULL, &arraybuffer)); in NullArrayBuffer()
117 return arraybuffer; in NullArrayBuffer()
199 napi_value arraybuffer; in Detach() local
200 NAPI_CALL(env, napi_get_typedarray_info(env, args[0], NULL, NULL, NULL, &arraybuffer, NULL)); in Detach()
201 NAPI_CALL(env, napi_detach_arraybuffer(env, arraybuffer)); in Detach()
/third_party/ejdb/src/bindings/ejdb2_node/
Djs_native_api.h398 napi_value arraybuffer,
407 napi_value arraybuffer,
415 napi_value* arraybuffer,
420 napi_value arraybuffer,
430 napi_value* arraybuffer,
535 napi_value arraybuffer);
/third_party/node/src/
Djs_native_api.h398 napi_value arraybuffer,
407 napi_value arraybuffer,
415 napi_value* arraybuffer,
420 napi_value arraybuffer,
430 napi_value* arraybuffer,
535 napi_value arraybuffer);
Djs_native_api_v8.cc2770 napi_value arraybuffer, in napi_get_arraybuffer_info() argument
2774 CHECK_ARG(env, arraybuffer); in napi_get_arraybuffer_info()
2776 v8::Local<v8::Value> value = v8impl::V8LocalValueFromJsValue(arraybuffer); in napi_get_arraybuffer_info()
2807 napi_value arraybuffer, in napi_create_typedarray() argument
2811 CHECK_ARG(env, arraybuffer); in napi_create_typedarray()
2814 v8::Local<v8::Value> value = v8impl::V8LocalValueFromJsValue(arraybuffer); in napi_create_typedarray()
2878 napi_value* arraybuffer, in napi_get_typedarray_info() argument
2919 if (data != nullptr || arraybuffer != nullptr) { in napi_get_typedarray_info()
2930 if (arraybuffer != nullptr) { in napi_get_typedarray_info()
2931 *arraybuffer = v8impl::JsValueFromV8LocalValue(buffer); in napi_get_typedarray_info()
[all …]
/third_party/jerryscript/jerry-core/ecma/builtin-objects/
Decma-builtin-arraybuffer.c33 #define BUILTIN_UNDERSCORED_ID arraybuffer
Decma-builtins.inc.h355 arraybuffer)
/third_party/jerryscript/jerry-core/api/
Djerry.c3721 ecma_object_t *arraybuffer; in jerry_create_arraybuffer_external() local
3725arraybuffer = ecma_arraybuffer_new_object_external (0, NULL, (ecma_object_native_free_callback_t) … in jerry_create_arraybuffer_external()
3729 arraybuffer = ecma_arraybuffer_new_object_external (size, in jerry_create_arraybuffer_external()
3734 return jerry_return (ecma_make_object_value (arraybuffer)); in jerry_create_arraybuffer_external()
4214 … const jerry_value_t arraybuffer, /**< ArrayBuffer to use */ in jerry_create_typedarray_for_arraybuffer_sz() argument
4221 if (ecma_is_value_error_reference (arraybuffer)) in jerry_create_typedarray_for_arraybuffer_sz()
4235 if (!ecma_is_arraybuffer (arraybuffer)) in jerry_create_typedarray_for_arraybuffer_sz()
4243 arraybuffer, in jerry_create_typedarray_for_arraybuffer_sz()
4255 JERRY_UNUSED (arraybuffer); in jerry_create_typedarray_for_arraybuffer_sz()
4273 const jerry_value_t arraybuffer) /**< ArrayBuffer to use */ in jerry_create_typedarray_for_arraybuffer() argument
[all …]
/third_party/jerryscript/jerry-core/ecma/operations/
Decma-typedarray-object.c566 ext_object_p->u.pseudo_array.u2.arraybuffer = ecma_make_object_value (new_arraybuffer_p); in ecma_typedarray_create_object_with_length()
606 ext_object_p->u.pseudo_array.u2.arraybuffer = ecma_make_object_value (arraybuffer_p); in ecma_typedarray_create_object_with_buffer()
978 return ecma_get_object_from_value (ext_object_p->u.pseudo_array.u2.arraybuffer); in ecma_typedarray_get_arraybuffer()
1008 …object_t *arraybuffer_p = ecma_get_object_from_value (ext_object_p->u.pseudo_array.u2.arraybuffer); in ecma_typedarray_get_length()
/third_party/jerryscript/jerry-core/
DBUILD.gn50 "ecma/builtin-objects/ecma-builtin-arraybuffer-prototype.c",
51 "ecma/builtin-objects/ecma-builtin-arraybuffer.c",
136 "ecma/operations/ecma-arraybuffer-object.c",
/third_party/flutter/engine/flutter/lib/web_ui/lib/src/engine/
Dassets.dart36 await html.HttpRequest.request(url, responseType: 'arraybuffer');
/third_party/jerryscript/jerry-core/include/
Djerryscript-core.h697 const jerry_value_t arraybuffer,
701 const jerry_value_t arraybuffer);
/third_party/jerryscript/
DBUILD.gn100 "jerry-core/ecma/builtin-objects/ecma-builtin-arraybuffer-prototype.c",
101 "jerry-core/ecma/builtin-objects/ecma-builtin-arraybuffer.c",
186 "jerry-core/ecma/operations/ecma-arraybuffer-object.c",
/third_party/node/deps/npm/node_modules/psl/
Dyarn.lock206 arraybuffer.slice@~0.0.7:
208 …resolved "https://registry.yarnpkg.com/arraybuffer.slice/-/arraybuffer.slice-0.0.7.tgz#3bbc4275dd5…
310 base64-arraybuffer@0.1.5:
312 …resolved "https://registry.yarnpkg.com/base64-arraybuffer/-/base64-arraybuffer-0.1.5.tgz#739267719…
1247 arraybuffer.slice "~0.0.7"
1248 base64-arraybuffer "0.1.5"
3939 base64-arraybuffer "0.1.5"
4100 to-arraybuffer "^1.0.0"
4266 to-arraybuffer@^1.0.0:
4268 …resolved "https://registry.yarnpkg.com/to-arraybuffer/-/to-arraybuffer-1.0.1.tgz#7d229b1fcc637e466…
/third_party/jerryscript/jerry-core/profiles/
DREADME.md110 … the [ArrayBuffer](http://www.ecma-international.org/ecma-262/6.0/#sec-arraybuffer-objects) and [T…
/third_party/jerryscript/jerry-core/ecma/base/
Decma-globals.h906 ecma_value_t arraybuffer; /**< for typedarray: internal arraybuffer */ member
/third_party/jerryscript/docs/
D02.API-REFERENCE.md1618 jerry_value_t arraybuffer = jerry_create_arraybuffer (16);
1619 jerry_value_t dataview = jerry_create_dataview (arraybuffer, 0, 16);
1627 jerry_release_value (arraybuffer);
4025 jerry_value_t arraybuffer = jerry_create_arraybuffer (16);
4026 jerry_value_t dataview = jerry_create_dataview (arraybuffer, 0, 16);
4031 jerry_release_value (arraybuffer);
4767 The JavaScript equivalent of this function is: `new %TypedArray%(arraybuffer)` where `%TypedArray%`…
4783 const jerry_value_t arraybuffer);
4787 - `arraybuffer` - the ArrayBuffer to use for the new TypedArray
4828 The JavaScript equivalent of this function is: `new %TypedArray%(arraybuffer, byteOffset, length)` …
[all …]
D03.API-EXAMPLE.md563 …umber, null, object, string, undefined or some special type of objects (arraybuffer, symbols, etc).
/third_party/node/doc/api/
Dn-api.md2367 napi_value arraybuffer,
2375 * `[in] arraybuffer`: `ArrayBuffer` underlying the typed array.
2403 napi_value arraybuffer,
2410 * `[in] arraybuffer`: `ArrayBuffer` underlying the `DataView`.
2703 napi_value arraybuffer,
2709 * `[in] arraybuffer`: `napi_value` representing the `ArrayBuffer` being queried.
2786 napi_value* arraybuffer,
2799 * `[out] arraybuffer`: The `ArrayBuffer` underlying the `TypedArray`.
2824 napi_value* arraybuffer,
2834 * `[out] arraybuffer`: `ArrayBuffer` underlying the `DataView`.
[all …]
/third_party/node/test/fixtures/wpt/interfaces/
Dhtml.idl2103 enum BinaryType { "blob", "arraybuffer" };
/third_party/node/doc/changelogs/
DCHANGELOG_V14.md4273 * [[`90f7a5c010`](https://github.com/nodejs/node/commit/90f7a5c010)] - **src**: set arraybuffer\_un…