Home
last modified time | relevance | path

Searched refs:maxLen (Results 1 - 25 of 128) sorted by relevance

123456

/foundation/multimedia/media_foundation/engine/pipeline/filters/common/
H A Dplugin_utils.cpp49 int32_t Stringiness(char* buf, size_t maxLen, const char* name, const T& val) in Stringiness() argument
56 int32_t FixedCapKeyStringiness(char* buf, size_t maxLen, const char* name, const char* typeName, in FixedCapKeyStringiness() argument
60 auto ret = snprintf_truncated_s(buf, maxLen, "%s:(%s)", name, typeName); in FixedCapKeyStringiness()
69 RETURN_IF_FAILED(Stringiness(buf + pos, maxLen - pos, name, *item), -1, ret); in FixedCapKeyStringiness()
74 int32_t IntervalCapKeyStringiness(char* buf, size_t maxLen, const char* name, const char* typeName, in IntervalCapKeyStringiness() argument
78 auto ret = snprintf_truncated_s(buf, maxLen, "%s:(%s)[", name, typeName); in IntervalCapKeyStringiness()
87 RETURN_IF_FAILED(Stringiness(buf + pos, maxLen - pos, name, item->first), -1, ret); in IntervalCapKeyStringiness()
89 RETURN_IF_FAILED(snprintf_truncated_s(buf + pos, maxLen - pos, ", "), -1, ret); in IntervalCapKeyStringiness()
91 RETURN_IF_FAILED(Stringiness(buf + pos, maxLen - pos, name, item->second), -1, ret); in IntervalCapKeyStringiness()
93 RETURN_IF_FAILED(snprintf_truncated_s(buf + pos, maxLen in IntervalCapKeyStringiness()
98 DiscreteCapKeyStringiness(char* buf, size_t maxLen, const char* name, const char* typeName, const Plugin::ValueType& val) DiscreteCapKeyStringiness() argument
128 CapKeyStringiness(char* buf, size_t maxLen, const char* name, const char* typeName, const Plugin::ValueType& val) CapKeyStringiness() argument
144 Stringiness(char* buf, size_t maxLen, const char* name, const int32_t& val) Stringiness() argument
150 Stringiness(char* buf, size_t maxLen, const char* name, const uint32_t& val) Stringiness() argument
156 Stringiness(char* buf, size_t maxLen, const char* name, const std::string& val) Stringiness() argument
162 Stringiness(char* buf, size_t maxLen, const char* name, const int64_t& val) Stringiness() argument
168 Stringiness(char* buf, size_t maxLen, const char* name, const uint64_t& val) Stringiness() argument
174 Stringiness(char* buf, size_t maxLen, const char* name, const Plugin::AudioSampleFormat& val) Stringiness() argument
184 Stringiness(char* buf, size_t maxLen, const char* name, const Plugin::AudioChannelLayout& val) Stringiness() argument
194 Stringiness(char* buf, size_t maxLen, const char* name, const Plugin::VideoPixelFormat& val) Stringiness() argument
204 Stringiness(char* buf, size_t maxLen, const char* name, const Plugin::VideoBitStreamFormat& val) Stringiness() argument
214 Stringiness(char* buf, size_t maxLen, const char* name, const Plugin::AudioAacProfile& val) Stringiness() argument
224 Stringiness(char* buf, size_t maxLen, const char* name, const Plugin::AudioAacStreamFormat& val) Stringiness() argument
234 Stringiness(char* buf, size_t maxLen, const char* name, const Plugin::CodecConfig& val) Stringiness() argument
240 MetaIDStringiness(char* buf, size_t maxLen, const char* name, const char* typeName, const Plugin::ValueType& val) MetaIDStringiness() argument
[all...]
/kernel/linux/linux-5.10/lib/
H A Ddecompress_bunzip2.c87 int minLen, maxLen; member
236 int minLen, maxLen, pp; in get_next_block() local
272 minLen = maxLen = length[0]; in get_next_block()
275 if (length[i] > maxLen) in get_next_block()
276 maxLen = length[i]; in get_next_block()
298 hufGroup->maxLen = maxLen; in get_next_block()
308 for (i = minLen; i <= maxLen; i++) { in get_next_block()
324 for (i = minLen; i < maxLen; i++) { in get_next_block()
336 limit[i] = (pp << (maxLen in get_next_block()
[all...]
/kernel/linux/linux-6.6/lib/
H A Ddecompress_bunzip2.c87 int minLen, maxLen; member
236 int minLen, maxLen, pp; in get_next_block() local
272 minLen = maxLen = length[0]; in get_next_block()
275 if (length[i] > maxLen) in get_next_block()
276 maxLen = length[i]; in get_next_block()
298 hufGroup->maxLen = maxLen; in get_next_block()
308 for (i = minLen; i <= maxLen; i++) { in get_next_block()
324 for (i = minLen; i < maxLen; i++) { in get_next_block()
336 limit[i] = (pp << (maxLen in get_next_block()
[all...]
/third_party/icu/icu4c/source/i18n/
H A Dname2uni.cpp116 int32_t maxLen = uprv_getMaxCharNameLength(); in handleTransliterate() local
117 if (maxLen == 0) { in handleTransliterate()
123 ++maxLen; // allow for temporary trailing space in handleTransliterate()
124 char* cbuf = (char*) uprv_malloc(maxLen); in handleTransliterate()
174 // If we are too long then abort. maxLen includes in handleTransliterate()
176 if (name.length() > maxLen) { in handleTransliterate()
194 name.extract(0, len, cbuf, maxLen, US_INV); in handleTransliterate()
230 // maxLen includes temporary trailing space, so use '>='. in handleTransliterate()
231 if (name.length() >= maxLen) { in handleTransliterate()
H A Duni2name.cpp78 int32_t maxLen = uprv_getMaxCharNameLength(); in handleTransliterate() local
79 if (maxLen == 0) { in handleTransliterate()
85 char* buf = (char*) uprv_malloc(maxLen); in handleTransliterate()
102 if ((len = u_charName(c, U_EXTENDED_CHAR_NAME, buf, maxLen, &status)) >0 && !U_FAILURE(status)) { in handleTransliterate()
/third_party/node/deps/icu-small/source/i18n/
H A Dname2uni.cpp116 int32_t maxLen = uprv_getMaxCharNameLength(); in handleTransliterate() local
117 if (maxLen == 0) { in handleTransliterate()
123 ++maxLen; // allow for temporary trailing space in handleTransliterate()
124 char* cbuf = (char*) uprv_malloc(maxLen); in handleTransliterate()
174 // If we are too long then abort. maxLen includes in handleTransliterate()
176 if (name.length() > maxLen) { in handleTransliterate()
194 name.extract(0, len, cbuf, maxLen, US_INV); in handleTransliterate()
230 // maxLen includes temporary trailing space, so use '>='. in handleTransliterate()
231 if (name.length() >= maxLen) { in handleTransliterate()
H A Duni2name.cpp78 int32_t maxLen = uprv_getMaxCharNameLength(); in handleTransliterate() local
79 if (maxLen == 0) { in handleTransliterate()
85 char* buf = (char*) uprv_malloc(maxLen); in handleTransliterate()
102 if ((len = u_charName(c, U_EXTENDED_CHAR_NAME, buf, maxLen, &status)) >0 && !U_FAILURE(status)) { in handleTransliterate()
/third_party/skia/third_party/externals/icu/source/i18n/
H A Dname2uni.cpp116 int32_t maxLen = uprv_getMaxCharNameLength(); in handleTransliterate() local
117 if (maxLen == 0) { in handleTransliterate()
123 ++maxLen; // allow for temporary trailing space in handleTransliterate()
124 char* cbuf = (char*) uprv_malloc(maxLen); in handleTransliterate()
174 // If we are too long then abort. maxLen includes in handleTransliterate()
176 if (name.length() > maxLen) { in handleTransliterate()
194 name.extract(0, len, cbuf, maxLen, US_INV); in handleTransliterate()
230 // maxLen includes temporary trailing space, so use '>='. in handleTransliterate()
231 if (name.length() >= maxLen) { in handleTransliterate()
H A Duni2name.cpp78 int32_t maxLen = uprv_getMaxCharNameLength(); in handleTransliterate() local
79 if (maxLen == 0) { in handleTransliterate()
85 char* buf = (char*) uprv_malloc(maxLen); in handleTransliterate()
102 if ((len = u_charName(c, U_EXTENDED_CHAR_NAME, buf, maxLen, &status)) >0 && !U_FAILURE(status)) { in handleTransliterate()
/foundation/communication/dhcp/services/dhcp_client/src/
H A Ddhcp_options.cpp27 static bool CheckOptSoverloaded(const struct DhcpPacket *packet, int code, int maxLen, int *over, int *index) in CheckOptSoverloaded() argument
35 if (*index + DHCP_OPT_LEN_INDEX + pOption[*index + DHCP_OPT_LEN_INDEX] >= maxLen) { in CheckOptSoverloaded()
37 code, *index, maxLen); in CheckOptSoverloaded()
46 static int CheckOptionsData(const struct DhcpPacket *packet, int code, int index, int maxLen) in CheckOptionsData() argument
53 if (index >= maxLen - DHCP_OPT_DATA_INDEX) { in CheckOptionsData()
55 code, index, maxLen); in CheckOptionsData()
64 if (index + DHCP_OPT_LEN_INDEX + pOption[index + DHCP_OPT_LEN_INDEX] >= maxLen) { in CheckOptionsData()
162 int nIndex = 0, maxLen = DHCP_OPT_SIZE, nOver = 0, nFinished = 0, nFlag = OPTION_FIELD; in GetDhcpOption() local
164 int nRet = CheckOptionsData(packet, code, nIndex, maxLen); in GetDhcpOption()
177 if (!CheckOptSoverloaded(packet, code, maxLen, in GetDhcpOption()
[all...]
/third_party/lzma/C/
H A DLzFind.c870 (lenLimit > maxLen)
875 UInt32 *d, unsigned maxLen) in Hc_GetMatchesSpec()
887 if (pb[maxLen] == cur[maxLen] && *pb == *cur) in Hc_GetMatchesSpec()
893 if (maxLen < len) in Hc_GetMatchesSpec()
895 maxLen = len; in Hc_GetMatchesSpec()
923 if (cur[maxLen] == cur[(ptrdiff_t)maxLen + diff]) in Hc_GetMatchesSpec()
937 if (maxLen < len) in Hc_GetMatchesSpec()
939 maxLen in Hc_GetMatchesSpec()
873 Hc_GetMatchesSpec(size_t lenLimit, UInt32 curMatch, UInt32 pos, const Byte *cur, CLzRef *son, size_t _cyclicBufferPos, UInt32 _cyclicBufferSize, UInt32 cutValue, UInt32 *d, unsigned maxLen) Hc_GetMatchesSpec() argument
955 GetMatchesSpec1(UInt32 lenLimit, UInt32 curMatch, UInt32 pos, const Byte *cur, CLzRef *son, size_t _cyclicBufferPos, UInt32 _cyclicBufferSize, UInt32 cutValue, UInt32 *d, UInt32 maxLen) GetMatchesSpec1() argument
1165 unsigned maxLen; Bt3_MatchFinder_GetMatches() local
1183 maxLen = 2; Bt3_MatchFinder_GetMatches() local
1206 unsigned maxLen; Bt4_MatchFinder_GetMatches() local
1225 maxLen = 3; Bt4_MatchFinder_GetMatches() local
1273 UInt32 h2, h3, d2, d3, maxLen, pos; Bt5_MatchFinder_GetMatches() local
1295 maxLen = 4; Bt5_MatchFinder_GetMatches() local
1346 unsigned maxLen; Hc4_MatchFinder_GetMatches() local
1365 maxLen = 3; Hc4_MatchFinder_GetMatches() local
1413 UInt32 h2, h3, d2, d3, maxLen, pos; Hc5_MatchFinder_GetMatches() local
1435 maxLen = 4; Hc5_MatchFinder_GetMatches() local
[all...]
/foundation/communication/dsoftbus/core/common/dfx/event/src/convert/
H A Dsoftbus_event_converter.h41 static inline bool InitString(char **str, size_t maxLen) in InitString() argument
43 *str = (char *)malloc(maxLen); in InitString()
48 if (memset_s(*str, maxLen, 0, maxLen) != EOK) { in InitString()
55 static inline bool CopyString(char *destName, const char *srcName, size_t maxLen) in CopyString() argument
57 if (strcpy_s(destName, maxLen, srcName) != EOK) { in CopyString()
58 COMM_LOGE(COMM_DFX, "strcpy_s fail, srcName=%{public}s, maxLen=%{public}zu", srcName, maxLen); in CopyString()
/foundation/communication/dsoftbus/adapter/common/kernel/liteos_m/
H A Dsoftbus_adapter_file.c24 int32_t SoftBusReadFile(int32_t fd, void *readBuf, uint32_t maxLen) in SoftBusReadFile() argument
28 (void)maxLen; in SoftBusReadFile()
32 int32_t SoftBusReadFullFile(const char *fileName, char *readBuf, uint32_t maxLen) in SoftBusReadFullFile() argument
34 if (fileName == NULL || readBuf == NULL || maxLen == 0) { in SoftBusReadFullFile()
55 if (fileLen > maxLen) { in SoftBusReadFullFile()
60 ret = UtilsFileRead(fd, readBuf, maxLen); in SoftBusReadFullFile()
/third_party/vk-gl-cts/external/vulkan-docs/src/scripts/spec_tools/
H A Dconsole_printer.py71 line, start, end, highlightStart=None, highlightEnd=None, maxLen=120, replacement=None):
96 if len(line) > maxLen:
104 maxLen -= len(continuation)
106 if followingSpaceIndex <= maxLen:
109 line = line[:maxLen] + continuation
114 newBeginning = len(line) - maxLen
125 maxLen -= len(continuation)
128 newBeginning = newEnd - maxLen
/foundation/communication/dsoftbus/adapter/common/kernel/posix/
H A Dsoftbus_adapter_file.c66 int32_t SoftBusReadFile(int32_t fd, void *readBuf, uint32_t maxLen) in SoftBusReadFile() argument
72 int64_t len = read(fd, readBuf, maxLen); in SoftBusReadFile()
79 static int32_t ReadFullFile(const char *fileName, char *readBuf, uint32_t maxLen, int32_t *size) in ReadFullFile() argument
81 if (fileName == NULL || readBuf == NULL || maxLen == 0 || size == NULL) { in ReadFullFile()
97 if (fileLen > (int32_t)maxLen) { in ReadFullFile()
98 COMM_LOGE(COMM_ADAPTER, "ReadFile over max len, fileLen=%{public}d, maxLen=%{public}u", fileLen, maxLen); in ReadFullFile()
119 int32_t SoftBusReadFullFileAndSize(const char *fileName, char *readBuf, uint32_t maxLen, int32_t *size) in SoftBusReadFullFileAndSize() argument
121 return ReadFullFile(fileName, readBuf, maxLen, size); in SoftBusReadFullFileAndSize()
124 int32_t SoftBusReadFullFile(const char *fileName, char *readBuf, uint32_t maxLen) in SoftBusReadFullFile() argument
[all...]
/third_party/bounds_checking_function/src/
H A Dsecurecutil.h162 #define SECUREC_CALC_STR_LEN(str, maxLen, outLen) do { \
163 *(outLen) = strnlen((str), (maxLen)); \
165 #define SECUREC_CALC_STR_LEN_OPT(str, maxLen, outLen) do { \
166 if ((maxLen) > 8) { \
189 *(outLen) = 8 + strnlen((str) + 8, (maxLen) - 8); \
192 SECUREC_CALC_STR_LEN((str), (maxLen), (outLen)); \
196 #define SECUREC_CALC_STR_LEN(str, maxLen, outLen) do { \
198 size_t availableSize_ = (size_t)(maxLen); \
208 #define SECUREC_CALC_WSTR_LEN(str, maxLen, outLen) do { \
211 while (len_ < (maxLen)
[all...]
/third_party/toybox/toys/other/
H A Dbzcat.c66 char minLen, maxLen; member
229 int minLen, maxLen, pp; in read_block_header() local
251 minLen = maxLen = length[0]; in read_block_header()
253 if(length[ii] > maxLen) maxLen = length[ii]; in read_block_header()
274 hufGroup->maxLen = maxLen; in read_block_header()
284 for (ii = minLen; ii <= maxLen; ii++) { in read_block_header()
298 for (ii = minLen; ii < maxLen; ii++) { in read_block_header()
304 limit[maxLen] in read_block_header()
[all...]
/foundation/communication/dsoftbus/tests/adapter/unittest/
H A Ddsoftbus_other_test.cpp116 int32_t maxLen = 100; in HWTEST_F() local
119 ret = SoftBusReadFullFile(g_FileName, readbuf, maxLen); in HWTEST_F()
132 int32_t maxLen = 100; in HWTEST_F() local
133 int32_t ret = SoftBusReadFullFile(nullptr, readbuf, maxLen); in HWTEST_F()
136 ret = SoftBusReadFullFile(g_FileName, nullptr, maxLen); in HWTEST_F()
142 * @tc.desc: maxLen is ivaild param
149 int32_t maxLen = 0; in HWTEST_F() local
150 int32_t ret = SoftBusReadFullFile(g_FileName, readbuf, maxLen); in HWTEST_F()
/third_party/lzma/CS/7zip/Common/
H A DCommandLineParser.cs27 int minLen, int maxLen, string postCharSet) in SwitchForm()
33 MaxLen = maxLen; in SwitchForm()
84 int maxLen = kNoLen; in ParseString()
88 if (switchLen <= maxLen || pos + switchLen > len) in ParseString()
94 maxLen = switchLen; in ParseString()
97 if (maxLen == kNoLen) in ParseString()
98 throw new Exception("maxLen == kNoLen"); in ParseString()
104 pos += maxLen; in ParseString()
26 SwitchForm(string idString, SwitchType type, bool multi, int minLen, int maxLen, string postCharSet) SwitchForm() argument
/third_party/lzma/CPP/Common/
H A DCommandLineParser.cpp76 int maxLen = -1; in ParseString() local
82 if ((int)switchLen <= maxLen || pos + switchLen > s.Len()) in ParseString()
87 maxLen = (int)switchLen; in ParseString()
91 if (maxLen < 0) in ParseString()
97 pos += (unsigned)maxLen; in ParseString()
/foundation/communication/dsoftbus/tests/core/common/utils/unittest/
H A Dsoftbus_utils_test.cpp266 uint32_t maxLen = 4; in HWTEST_F() local
267 EXPECT_FALSE(IsValidString(input, maxLen)); in HWTEST_F()
270 maxLen = 4; in HWTEST_F()
271 EXPECT_FALSE(IsValidString(input, maxLen)); in HWTEST_F()
274 maxLen = 4; in HWTEST_F()
275 EXPECT_FALSE(IsValidString(input, maxLen)); in HWTEST_F()
278 maxLen = 5; in HWTEST_F()
279 EXPECT_TRUE(IsValidString(input, maxLen)); in HWTEST_F()
/foundation/communication/dsoftbus/adapter/common/include/
H A Dsoftbus_adapter_file.h47 int32_t SoftBusReadFile(int32_t fd, void *readBuf, uint32_t maxLen);
48 int32_t SoftBusReadFullFile(const char *fileName, char *readBuf, uint32_t maxLen);
61 int32_t SoftBusReadFullFileAndSize(const char *fileName, char *readBuf, uint32_t maxLen, int32_t *size);
/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/diagram/scanline/
H A Dgeometry_scanline.h71 uint32_t maxLen = maxX - minX + liftNumber; in Reset() local
72 if (maxLen > arraySpans_.GetSize()) { in Reset()
73 arraySpans_.Resize(maxLen); in Reset()
74 arrayCovers_.Resize(maxLen); in Reset()
/kernel/liteos_a/kernel/extended/dynload/src/
H A Dlos_exec_elf.c51 STATIC INT32 OsGetRealPath(const CHAR *fileName, CHAR *buf, UINT32 maxLen) in OsGetRealPath() argument
64 if (newLen >= maxLen) { in OsGetRealPath()
67 if (strncpy_s(buf, maxLen, workingDirectory, workPathLen) != EOK) { in OsGetRealPath()
72 if (strncpy_s(buf + workPathLen + 1, maxLen - workPathLen - 1, fileName, len) != EOK) { in OsGetRealPath()
/third_party/icu/icu4j/main/classes/translit/src/com/ibm/icu/text/
H A DNameUnicodeTransliterator.java53 int maxLen = UCharacterName.INSTANCE.getMaxCharNameLength() + 1; // allow for temporary trailing space in handleTransliterate()
55 StringBuffer name = new StringBuffer(maxLen); in handleTransliterate()
101 // If we are too long then abort. maxLen includes in handleTransliterate()
103 if (name.length() > maxLen) { in handleTransliterate()
148 // maxLen includes temporary trailing space, so use '>='. in handleTransliterate()
149 if (name.length() >= maxLen) { in handleTransliterate()

Completed in 14 milliseconds

123456