Home
last modified time | relevance | path

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

12

/third_party/jerryscript/tests/unit-core/
Dtest-arraybuffer.cpp142 jerry_value_t arraybuffer = jerry_create_arraybuffer (length); variable
143 TEST_ASSERT (!jerry_value_is_error (arraybuffer));
144 TEST_ASSERT (jerry_value_is_arraybuffer (arraybuffer));
145 TEST_ASSERT (jerry_get_arraybuffer_byte_length (arraybuffer) == length);
146 jerry_release_value (arraybuffer);
152 jerry_value_t arraybuffer = jerry_create_arraybuffer (length); variable
153 TEST_ASSERT (!jerry_value_is_error (arraybuffer));
154 TEST_ASSERT (jerry_value_is_arraybuffer (arraybuffer));
155 TEST_ASSERT (jerry_get_arraybuffer_byte_length (arraybuffer) == length);
160 jerry_length_t bytes_read = jerry_arraybuffer_read (arraybuffer, 0, data, 20);
[all …]
Dtest-typedarray.cpp100 jerry_value_t arraybuffer = jerry_get_typedarray_buffer (typedarray, &byte_offset, &byte_length); in test_typedarray_info() local
101 TEST_ASSERT (jerry_value_is_arraybuffer (arraybuffer)); in test_typedarray_info()
106 jerry_release_value (arraybuffer); in test_typedarray_info()
291 jerry_value_t arraybuffer = jerry_create_arraybuffer_external (length, buf, NULL); in test_detached_arraybuffer() local
292 TEST_ASSERT (!jerry_value_is_error (arraybuffer)); in test_detached_arraybuffer()
293 TEST_ASSERT (jerry_value_is_arraybuffer (arraybuffer)); in test_detached_arraybuffer()
294 TEST_ASSERT (jerry_get_arraybuffer_byte_length (arraybuffer) == length); in test_detached_arraybuffer()
296 jerry_value_t is_detachable = jerry_is_arraybuffer_detachable (arraybuffer); in test_detached_arraybuffer()
301 jerry_value_t res = jerry_detach_arraybuffer (arraybuffer); in test_detached_arraybuffer()
307 …ry_value_t typedarray = jerry_create_typedarray_for_arraybuffer_sz (types[idx], arraybuffer, 0, 4); in test_detached_arraybuffer()
[all …]
Dtest-dataview.cpp62 jerry_value_t arraybuffer = jerry_create_arraybuffer (16); variable
63 jerry_value_t view1 = jerry_create_dataview (arraybuffer, 0, 16);
70 TEST_ASSERT (jerry_binary_operation (JERRY_BIN_OP_STRICT_EQUAL, internal_buffer, arraybuffer));
75 jerry_value_t view2 = jerry_create_dataview (arraybuffer, 12, 4);
79 TEST_ASSERT (jerry_binary_operation (JERRY_BIN_OP_STRICT_EQUAL, internal_buffer, arraybuffer));
93 jerry_value_t view4 = jerry_create_dataview (arraybuffer, 20, 10);
124 jerry_release_value (arraybuffer);
DBUILD.gn120 "test-arraybuffer.cpp",
/third_party/node/test/js-native-api/test_dataview/
Dtest_dataview.c13 napi_value arraybuffer = args[0]; in CreateDataView() local
15 NODE_API_CALL(env, napi_typeof(env, arraybuffer, &valuetype0)); in CreateDataView()
21 NODE_API_CALL(env, napi_is_arraybuffer(env, arraybuffer, &is_arraybuffer)); in CreateDataView()
46 napi_create_dataview(env, length, arraybuffer, in CreateDataView()
/third_party/node/deps/v8/src/builtins/
Darraybuffer.tq5 namespace arraybuffer {
7 // #sec-get-arraybuffer.prototype.bytelength
27 // #sec-get-arraybuffer.prototype.maxbytelength
57 // #sec-get-arraybuffer.prototype.resizable
123 // #sec-arraybuffer.isview
138 } // namespace arraybuffer
/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()
201 napi_value arraybuffer; in Detach() local
204 env, args[0], NULL, NULL, NULL, &arraybuffer, NULL)); in Detach()
205 NODE_API_CALL(env, napi_detach_arraybuffer(env, arraybuffer)); in Detach()
/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.cc2916 napi_value arraybuffer, in napi_get_arraybuffer_info() argument
2920 CHECK_ARG(env, arraybuffer); in napi_get_arraybuffer_info()
2922 v8::Local<v8::Value> value = v8impl::V8LocalValueFromJsValue(arraybuffer); in napi_get_arraybuffer_info()
2954 napi_value arraybuffer, in napi_create_typedarray() argument
2958 CHECK_ARG(env, arraybuffer); in napi_create_typedarray()
2961 v8::Local<v8::Value> value = v8impl::V8LocalValueFromJsValue(arraybuffer); in napi_create_typedarray()
3025 napi_value* arraybuffer, in napi_get_typedarray_info() argument
3066 if (data != nullptr || arraybuffer != nullptr) { in napi_get_typedarray_info()
3076 if (arraybuffer != nullptr) { in napi_get_typedarray_info()
3077 *arraybuffer = v8impl::JsValueFromV8LocalValue(buffer); in napi_get_typedarray_info()
[all …]
/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/builtin-objects/
Decma-builtin-arraybuffer.c33 #define BUILTIN_UNDERSCORED_ID arraybuffer
Decma-builtins.inc.h355 arraybuffer)
/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/include/
Djerryscript-core.h697 const jerry_value_t arraybuffer,
701 const jerry_value_t arraybuffer);
/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/jerryscript/
DBUILD.gn135 "jerry-core/ecma/builtin-objects/ecma-builtin-arraybuffer-prototype.c",
136 "jerry-core/ecma/builtin-objects/ecma-builtin-arraybuffer.c",
221 "jerry-core/ecma/operations/ecma-arraybuffer-object.c",
/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/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/jerryscript/jerry-core/ecma/base/
Decma-globals.h906 ecma_value_t arraybuffer; /**< for typedarray: internal arraybuffer */ member
/third_party/node/doc/api/
Dn-api.md2631 napi_value arraybuffer,
2639 * `[in] arraybuffer`: `ArrayBuffer` underlying the typed array.
2668 napi_value arraybuffer,
2675 * `[in] arraybuffer`: `ArrayBuffer` underlying the `DataView`.
3082 napi_value arraybuffer,
3088 * `[in] arraybuffer`: `napi_value` representing the `ArrayBuffer` being queried.
3168 napi_value* arraybuffer,
3181 * `[out] arraybuffer`: The `ArrayBuffer` underlying the `TypedArray`.
3209 napi_value* arraybuffer,
3219 * `[out] arraybuffer`: `ArrayBuffer` underlying the `DataView`.
[all …]
Dv8.md1171 [`deserializer.transferArrayBuffer()`]: #deserializertransferarraybufferid-arraybuffer
1177 [`serializer.transferArrayBuffer()`]: #serializertransferarraybufferid-arraybuffer
/third_party/node/deps/v8/include/
Djs_protocol.pdl980 arraybuffer
1025 arraybuffer
1086 arraybuffer
1135 arraybuffer
/third_party/node/deps/v8/
DBUILD.bazel784 "src/builtins/arraybuffer.tq",
1092 "src/builtins/builtins-arraybuffer.cc",
/third_party/node/test/fixtures/wpt/interfaces/
Dhtml.idl2134 enum BinaryType { "blob", "arraybuffer" };

12