Remove the usage of ecma_length_t (#4009)
Now the following conventions are applied: - passing the number of arguments for a function call is always uint32_t - string size/length/position related operation should use lit_utf8_size_t - Extended objects internal fields must be uint32_t JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik frobert@inf.u-szeged.hu
This commit is contained in:
@@ -28,20 +28,20 @@
|
||||
*/
|
||||
|
||||
ecma_value_t
|
||||
ecma_op_create_arraybuffer_object (const ecma_value_t *, ecma_length_t);
|
||||
ecma_op_create_arraybuffer_object (const ecma_value_t *, uint32_t);
|
||||
|
||||
/**
|
||||
* Helper functions for arraybuffer.
|
||||
*/
|
||||
ecma_object_t *
|
||||
ecma_arraybuffer_new_object (ecma_length_t lengh);
|
||||
ecma_arraybuffer_new_object (uint32_t lengh);
|
||||
ecma_object_t *
|
||||
ecma_arraybuffer_new_object_external (ecma_length_t length,
|
||||
ecma_arraybuffer_new_object_external (uint32_t length,
|
||||
void *buffer_p,
|
||||
ecma_object_native_free_callback_t free_cb);
|
||||
lit_utf8_byte_t * JERRY_ATTR_PURE
|
||||
ecma_arraybuffer_get_buffer (ecma_object_t *obj_p);
|
||||
ecma_length_t JERRY_ATTR_PURE
|
||||
uint32_t JERRY_ATTR_PURE
|
||||
ecma_arraybuffer_get_length (ecma_object_t *obj_p);
|
||||
bool JERRY_ATTR_PURE
|
||||
ecma_arraybuffer_is_detached (ecma_object_t *obj_p);
|
||||
|
||||
Reference in New Issue
Block a user