Home
last modified time | relevance | path

Searched refs:string_size (Results 1 – 25 of 39) sorted by relevance

12

/third_party/jerryscript/jerry-core/lit/
Dlit-magic-strings.c171 lit_utf8_size_t string_size = JERRY_CONTEXT (lit_magic_string_ex_sizes)[id]; in lit_magic_strings_ex_set() local
182 string_size)); in lit_magic_strings_ex_set()
183 JERRY_ASSERT (prev_string_size <= string_size); in lit_magic_strings_ex_set()
185 if (prev_string_size == string_size) in lit_magic_strings_ex_set()
189 JERRY_ASSERT (memcmp (prev_ex_string_p, curr_ex_string_p, string_size) < 0); in lit_magic_strings_ex_set()
204 lit_utf8_size_t string_size) /**< string size in bytes */ in lit_is_utf8_string_magic() argument
206 if (string_size > lit_get_magic_string_size (LIT_NON_INTERNAL_MAGIC_STRING__COUNT - 1)) in lit_is_utf8_string_magic()
212 lit_utf8_size_t first = lit_get_magic_string_size_block_start (string_size); in lit_is_utf8_string_magic()
213 lit_utf8_size_t last = lit_get_magic_string_size_block_start (string_size + 1); in lit_is_utf8_string_magic()
218 …mpare = memcmp (lit_get_magic_string_utf8 ((lit_magic_string_id_t) middle), string_p, string_size); in lit_is_utf8_string_magic()
[all …]
Dlit-magic-strings.h95 …tring_id_t lit_is_utf8_string_magic (const lit_utf8_byte_t *string_p, lit_utf8_size_t string_size);
99 …ex_id_t lit_is_ex_utf8_string_magic (const lit_utf8_byte_t *string_p, lit_utf8_size_t string_size);
/third_party/python/Modules/_io/
Dbytesio.c16 Py_ssize_t string_size; member
80 if (self->pos >= self->string_size) in scan_eol()
84 maxlen = self->string_size - self->pos; in scan_eol()
111 assert(size >= (size_t)self->string_size); in unshare_buffer()
116 self->string_size); in unshare_buffer()
207 if (unshare_buffer(self, Py_MAX(endpos, (size_t)self->string_size)) < 0) { in write_bytes()
213 if (self->pos > self->string_size) { in write_bytes()
222 memset(PyBytes_AS_STRING(self->buf) + self->string_size, '\0', in write_bytes()
223 (self->pos - self->string_size) * sizeof(char)); in write_bytes()
232 if ((size_t)self->string_size < endpos) { in write_bytes()
[all …]
Dstringio.c25 Py_ssize_t string_size; member
220 if (self->string_size == self->pos) { in write_str()
229 if (self->pos + len > self->string_size) { in write_str()
234 if (self->pos > self->string_size) { in write_str()
244 memset(self->buf + self->string_size, '\0', in write_str()
245 (self->pos - self->string_size) * sizeof(Py_UCS4)); in write_str()
259 if (self->string_size < self->pos) in write_str()
260 self->string_size = self->pos; in write_str()
285 self->string_size); in _io_StringIO_getvalue_impl()
325 n = self->string_size - self->pos; in _io_StringIO_read_impl()
[all …]
/third_party/mesa3d/src/virtio/venus-protocol/
Dvn_protocol_driver_instance.h35 const size_t string_size = strlen(val->pApplicationName) + 1; in vn_sizeof_VkApplicationInfo_self() local
36 size += vn_sizeof_array_size(string_size); in vn_sizeof_VkApplicationInfo_self()
37 size += vn_sizeof_char_array(val->pApplicationName, string_size); in vn_sizeof_VkApplicationInfo_self()
43 const size_t string_size = strlen(val->pEngineName) + 1; in vn_sizeof_VkApplicationInfo_self() local
44 size += vn_sizeof_array_size(string_size); in vn_sizeof_VkApplicationInfo_self()
45 size += vn_sizeof_char_array(val->pEngineName, string_size); in vn_sizeof_VkApplicationInfo_self()
78 const size_t string_size = strlen(val->pApplicationName) + 1; in vn_encode_VkApplicationInfo_self() local
79 vn_encode_array_size(enc, string_size); in vn_encode_VkApplicationInfo_self()
80 vn_encode_char_array(enc, val->pApplicationName, string_size); in vn_encode_VkApplicationInfo_self()
86 const size_t string_size = strlen(val->pEngineName) + 1; in vn_encode_VkApplicationInfo_self() local
[all …]
Dvn_protocol_driver_pipeline.h168 const size_t string_size = strlen(val->pName) + 1; in vn_sizeof_VkPipelineShaderStageCreateInfo_self() local
169 size += vn_sizeof_array_size(string_size); in vn_sizeof_VkPipelineShaderStageCreateInfo_self()
170 size += vn_sizeof_char_array(val->pName, string_size); in vn_sizeof_VkPipelineShaderStageCreateInfo_self()
225 const size_t string_size = strlen(val->pName) + 1; in vn_encode_VkPipelineShaderStageCreateInfo_self() local
226 vn_encode_array_size(enc, string_size); in vn_encode_VkPipelineShaderStageCreateInfo_self()
227 vn_encode_char_array(enc, val->pName, string_size); in vn_encode_VkPipelineShaderStageCreateInfo_self()
/third_party/jerryscript/jerry-core/ecma/base/
Decma-helpers-string.c65 lit_utf8_size_t string_size, /**< string size */ in ecma_string_to_array_index() argument
68 JERRY_ASSERT (string_size > 0 && *string_p >= LIT_CHAR_0 && *string_p <= LIT_CHAR_9); in ecma_string_to_array_index()
73 return (string_size == 1); in ecma_string_to_array_index()
76 if (string_size > ECMA_MAX_CHARS_IN_STRINGIFIED_UINT32) in ecma_string_to_array_index()
82 const lit_utf8_byte_t *string_end_p = string_p + string_size; in ecma_string_to_array_index()
84 if (string_size == ECMA_MAX_CHARS_IN_STRINGIFIED_UINT32) in ecma_string_to_array_index()
100 if (string_size < ECMA_MAX_CHARS_IN_STRINGIFIED_UINT32) in ecma_string_to_array_index()
298 lit_utf8_size_t string_size) /**< string size */ in ecma_find_special_string() argument
300 JERRY_ASSERT (string_p != NULL || string_size == 0); in ecma_find_special_string()
301 lit_magic_string_id_t magic_string_id = lit_is_utf8_string_magic (string_p, string_size); in ecma_find_special_string()
[all …]
Decma-helpers.h294 …g_t *ecma_new_ecma_string_from_utf8 (const lit_utf8_byte_t *string_p, lit_utf8_size_t string_size);
295 …ma_new_nonref_ecma_string_from_utf8 (const lit_utf8_byte_t *string_p, lit_utf8_size_t string_size);
296 …_string_t *ecma_find_special_string (const lit_utf8_byte_t *string_p, lit_utf8_size_t string_size);
299 lit_utf8_size_t string_size);
/third_party/jerryscript/jerry-core/jmem/
Djmem-allocator.c61 jmem_stats_allocate_string_bytes (size_t string_size) in jmem_stats_allocate_string_bytes() argument
65 heap_stats->string_bytes += string_size; in jmem_stats_allocate_string_bytes()
77 jmem_stats_free_string_bytes (size_t string_size) in jmem_stats_free_string_bytes() argument
81 JERRY_ASSERT (heap_stats->string_bytes >= string_size); in jmem_stats_free_string_bytes()
83 heap_stats->string_bytes -= string_size; in jmem_stats_free_string_bytes()
Djmem.h179 void jmem_stats_allocate_string_bytes (size_t string_size);
180 void jmem_stats_free_string_bytes (size_t string_size);
182 void jmem_stats_free_object_bytes (size_t string_size);
/third_party/skia/third_party/externals/freetype/src/type42/
Dt42parse.c543 FT_ULong n, string_size, old_string_size, real_size; in t42_parse_sfnts() local
575 string_size = 0; in t42_parse_sfnts()
610 string_size = (FT_ULong)( ( parser->root.cursor - cur - 2 + 1 ) / 2 ); in t42_parse_sfnts()
611 if ( !string_size ) in t42_parse_sfnts()
617 if ( FT_QREALLOC( string_buf, old_string_size, string_size ) ) in t42_parse_sfnts()
623 (void)T1_ToBytes( parser, string_buf, string_size, &real_size, 1 ); in t42_parse_sfnts()
624 old_string_size = string_size; in t42_parse_sfnts()
625 string_size = real_size; in t42_parse_sfnts()
649 string_size = (FT_ULong)tmp; in t42_parse_sfnts()
657 if ( (FT_ULong)( limit - parser->root.cursor ) <= string_size ) in t42_parse_sfnts()
[all …]
/third_party/lame/ACM/
DAEncodeProperties.h219 …onst int GetBitrateString(char * string, int string_size) const {return GetBitrateString(string,st… in GetBitrateString() argument
230 const int GetBitrateString(char * string, int string_size, int a_bitrateID) const;
DAEncodeProperties.cpp264 const int AEncodeProperties::GetBitrateString(char * string, int string_size, int a_bitrateID) const in GetBitrateString() argument
269 if (string_size >= 4) in GetBitrateString()
/third_party/skia/third_party/externals/freetype/src/pcf/
Dpcfread.c488 FT_ULong string_size; in pcf_get_properties() local
585 (void)FT_READ_ULONG( string_size ); in pcf_get_properties()
587 (void)FT_READ_ULONG_LE( string_size ); in pcf_get_properties()
591 FT_TRACE4(( " string size: %ld\n", string_size )); in pcf_get_properties()
594 if ( string_size > size - orig_nprops * PCF_PROPERTY_SIZE ) in pcf_get_properties()
602 if ( string_size > 16777472 ) /* 256 * (65536 + 1) */ in pcf_get_properties()
606 string_size = 16777472; in pcf_get_properties()
610 if ( FT_QALLOC( strings, string_size + 1 ) || in pcf_get_properties()
611 FT_STREAM_READ( strings, string_size ) ) in pcf_get_properties()
614 strings[string_size] = '\0'; in pcf_get_properties()
[all …]
/third_party/jerryscript/jerry-core/ecma/builtin-objects/
Decma-builtin-string-prototype.c457 &(replace_ctx.string_size), in ecma_builtin_string_prototype_object_replace()
472 if (replace_ctx.string_size >= search_size) in ecma_builtin_string_prototype_object_replace()
475 const lit_utf8_byte_t *const input_end_p = replace_ctx.string_p + replace_ctx.string_size; in ecma_builtin_string_prototype_object_replace()
552 jmem_heap_free_block ((void *) replace_ctx.string_p, replace_ctx.string_size); in ecma_builtin_string_prototype_object_replace()
851 lit_utf8_size_t string_size; in ecma_builtin_string_prototype_object_split() local
854 &string_size, in ecma_builtin_string_prototype_object_split()
866 const lit_utf8_byte_t *const string_end_p = string_buffer_p + string_size; in ecma_builtin_string_prototype_object_split()
911 jmem_heap_free_block ((void *) string_buffer_p, string_size); in ecma_builtin_string_prototype_object_split()
Decma-builtin-helpers.h75 lit_utf8_size_t string_size; /**< source string size */ member
216 lit_utf8_size_t string_size);
Decma-builtin-json.c696 lit_utf8_size_t string_size) /**< size of the string */ in ecma_builtin_json_parse_buffer() argument
700 token.end_p = str_start_p + string_size; in ecma_builtin_json_parse_buffer()
742 ECMA_STRING_TO_UTF8_STRING (text_string_p, str_start_p, string_size); in ecma_builtin_json_parse()
743 ecma_value_t result = ecma_builtin_json_parse_buffer (str_start_p, string_size); in ecma_builtin_json_parse()
744 ECMA_FINALIZE_UTF8_STRING (str_start_p, string_size); in ecma_builtin_json_parse()
Decma-builtin-helpers.c848 && ctx_p->matched_p <= ctx_p->string_p + ctx_p->string_size)); in ecma_builtin_replace_substitute()
926 … (lit_utf8_size_t) (ctx_p->string_p + ctx_p->string_size - begin_p)); in ecma_builtin_replace_substitute()
934 … ctx_p->string_size - ctx_p->match_byte_pos - ctx_p->matched_size); in ecma_builtin_replace_substitute()
/third_party/jerryscript/jerry-core/ecma/operations/
Decma-regexp-object.c2352 lit_utf8_size_t string_size; in ecma_regexp_split_helper()
2356 &string_size, in ecma_regexp_split_helper()
2363 const lit_utf8_byte_t *const string_end_p = string_buffer_p + string_size; in ecma_regexp_split_helper()
2369 string_buffer_p + string_size); in ecma_regexp_split_helper()
2477 jmem_heap_free_block ((void *) string_buffer_p, string_size); in ecma_regexp_split_helper()
2514 &(ctx_p->string_size), in ecma_regexp_replace_helper_fast()
2519 const lit_utf8_byte_t *const string_end_p = ctx_p->string_p + ctx_p->string_size; in ecma_regexp_replace_helper_fast()
2676 jmem_heap_free_block ((void *) ctx_p->string_p, ctx_p->string_size); in ecma_regexp_replace_helper_fast()
2965 &(replace_ctx.string_size), in ecma_regexp_replace_helper()
2977 const lit_utf8_byte_t *const string_end_p = replace_ctx.string_p + replace_ctx.string_size; in ecma_regexp_replace_helper()
[all …]
/third_party/jerryscript/jerry-core/api/
Djerry-snapshot.c1488 lit_utf8_size_t string_size) /**< string size */ in jerry_append_chars_to_buffer() argument
1495 if (string_size == 0) in jerry_append_chars_to_buffer()
1497 string_size = (lit_utf8_size_t) strlen (chars); in jerry_append_chars_to_buffer()
1500 if (buffer_p + string_size <= buffer_end_p) in jerry_append_chars_to_buffer()
1502 memcpy ((char *) buffer_p, chars, string_size); in jerry_append_chars_to_buffer()
1504 return buffer_p + string_size; in jerry_append_chars_to_buffer()
/third_party/jerryscript/docs/
D07.DEBUGGER.md381 jerry_debugger_send_output (const jerry_char_t *buffer, jerry_size_t string_size)
418 …y_debugger_send_log (jerry_log_level_t level, const jerry_char_t *buffer, jerry_size_t string_size)
/third_party/jerryscript/jerry-core/debugger/
Ddebugger.c1590 ECMA_STRING_TO_UTF8_STRING (string_p, string_data_p, string_size); in jerry_debugger_send_exception_string()
1595 string_size); in jerry_debugger_send_exception_string()
1597 ECMA_FINALIZE_UTF8_STRING (string_data_p, string_size); in jerry_debugger_send_exception_string()
/third_party/mesa3d/src/gallium/frontends/clover/nir/
Dinvocation.cpp618 info.strings.resize(printf_infos[i].string_size); in spirv_to_nir()
619 memcpy(info.strings.data(), printf_infos[i].strings, printf_infos[i].string_size); in spirv_to_nir()
/third_party/mesa3d/src/compiler/spirv/
Dvtn_opencl.c750 unsigned idx = info->string_size; in vtn_add_printf_string()
753 info->string_size += c->num_elements; in vtn_add_printf_string()
790 info->string_size = 0; in handle_printf()
/third_party/vixl/test/aarch32/
Dtest-assembler-aarch32.cc1177 const int string_size = AlignUp(ldrd_range + kMaxInstructionSizeInBytes, 4); in TEST() local
1178 std::string test_string(string_size, 'x'); in TEST()
1226 const int string_size = AlignUp(ldrd_range + kMaxInstructionSizeInBytes, 4); in TEST() local
1227 std::string test_string(string_size, 'x'); in TEST()
1278 const int string_size = AlignUp(ldrd_range + kMaxInstructionSizeInBytes, 4); in EmitReusedLoadLiteralStressTest() local
1279 std::string test_string(string_size, 'x'); in EmitReusedLoadLiteralStressTest()
1521 const int string_size = AlignUp(ldrd_range + kMaxInstructionSizeInBytes, 4); in TEST() local
1522 std::string test_string(string_size, 'x'); in TEST()
1565 const int string_size = AlignUp(ldrd_range + kMaxInstructionSizeInBytes, 4); in TEST() local
1566 std::string test_string(string_size, 'x'); in TEST()
[all …]

12