Home
last modified time | relevance | path

Searched refs:limit (Results 1 - 5 of 5) sorted by relevance

/commonlibrary/ets_utils/js_util_module/util/
H A Djs_stringdecoder.cpp45 size_t limit = static_cast<size_t>(ucnv_getMinCharSize(conv_)) * length; in Write() local
46 size_t len = limit * sizeof(UChar); in Write()
48 if (limit > 0) { in Write()
49 arr = new UChar[limit + 1] { 0 }; in Write()
H A Djs_textdecoder.cpp118 size_t limit = GetMinByteSize() * length; in Decode() local
119 size_t len = limit * sizeof(UChar); in Decode()
121 if (limit > 0) { in Decode()
122 arr = new (std::nothrow) UChar[limit + 1]; in Decode()
133 HILOG_DEBUG("limit is error"); in Decode()
145 DecodeArr decArr(target, tarStartPos, limit); in Decode()
203 size_t limit = GetMinByteSize() * length; in DecodeToString() local
204 size_t len = limit * sizeof(UChar); in DecodeToString()
206 if (limit > 0) { in DecodeToString()
207 arr = new (std::nothrow) UChar[limit in DecodeToString()
[all...]
/commonlibrary/ets_utils/platform/ohos/
H A Dutil_helper.cpp70 size_t limit = maxByteSize * inputSize; in UnicodeConversion() local
71 size_t len = limit * sizeof(char); in UnicodeConversion()
73 if (limit > 0) { in UnicodeConversion()
74 targetArray = new char[limit + 1]; in UnicodeConversion()
82 HILOG_ERROR("textencoder::limit is error"); in UnicodeConversion()
88 const char *targetLimit = targetArray + limit; in UnicodeConversion()
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/executor/
H A Dasync_pool.rs237 let mut limit = local_run_queue.remaining() as usize; in get_task_from_queues() variables
241 if limit != LOCAL_QUEUE_CAP { in get_task_from_queues()
242 limit = 0; in get_task_from_queues()
246 .pop_batch(self.num_workers, local_run_queue, limit); in get_task_from_queues()
256 let limit = local_run_queue.remaining() as usize; in get_task_from_queues()
258 .pop_batch(self.num_workers, local_run_queue, limit) in get_task_from_queues()
576 // if time limit has been reached, the unfinished threads would not get released in release_wait()
H A Dqueue.rs474 limit: usize,
477 let num = cmp::min(len / worker_num, limit);

Completed in 5 milliseconds