• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* Copyright JS Foundation and other contributors, http://js.foundation
2  *
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef ECMA_DATAVIEW_OBJECT_H
17 #define ECMA_DATAVIEW_OBJECT_H
18 
19 #include "ecma-globals.h"
20 
21 #if ENABLED (JERRY_ES2015_BUILTIN_DATAVIEW)
22 
23 /** \addtogroup ecma ECMA
24  * @{
25  *
26  * \addtogroup ecmadataviewobject ECMA builtin DataView helper functions
27  * @{
28  */
29 
30 ecma_value_t ecma_op_dataview_create (const ecma_value_t *arguments_list_p, ecma_length_t arguments_list_len);
31 ecma_dataview_object_t *ecma_op_dataview_get_object (ecma_value_t this_arg);
32 ecma_value_t ecma_op_dataview_get_set_view_value (ecma_value_t view, ecma_value_t request_index,
33                                                   ecma_value_t little_endian, ecma_value_t value_to_set,
34                                                   ecma_typedarray_type_t id);
35 bool ecma_is_dataview (ecma_value_t value);
36 
37 /**
38  * @}
39  * @}
40  */
41 
42 #endif /* ENABLED (JERRY_ES2015_BUILTIN_DATAVIEW */
43 
44 #endif /* !ECMA_DATAVIEW_OBJECT_H */
45