/third_party/icu/icu4c/source/test/cintltst/ |
H A D | idnatest.c | 80 int32_t destLen = 0; in testAPI() local 96 destLen = func(src,-1,NULL,0,options, &parseError , &status); in testAPI() 99 if(destLen+1 < MAX_DEST_SIZE){ in testAPI() 101 destLen = func(src,-1,dest,destLen+1,options, &parseError, &status); in testAPI() 103 if(U_SUCCESS(status) && expectedStatus != U_IDNA_STD3_ASCII_RULES_ERROR&& (doCompare==true) && u_strCaseCompare(dest,destLen, expected,expectedLen,0,&status)!=0){ in testAPI() 118 destLen = func(src,-1,NULL,0,options | UIDNA_ALLOW_UNASSIGNED, &parseError, &status); in testAPI() 121 if(destLen+1 < MAX_DEST_SIZE){ in testAPI() 123 destLen = func(src,-1,dest,destLen in testAPI() 688 int32_t destLen = 40; TestJB4475() local 728 int32_t destLen = UPRV_LENGTHOF(dest); TestLength() local 780 int32_t destLen = UPRV_LENGTHOF(dest); TestLength() local [all...] |
H A D | spreptst.c | 304 destLen = 0; in unescapeData() local 310 u_strToUTF8(dest, destCapacity, &destLen, b1, b1Len, status); in unescapeData() 312 return destLen; in unescapeData() 332 int32_t destLen = 0; in Test_nfs4_cis_prep() local 334 destLen = nfs4_cis_prepare(src , (int32_t)strlen(src), dest, destLen, &parseError, &status); in Test_nfs4_cis_prep() 337 dest = (char*) malloc(++destLen); in Test_nfs4_cis_prep() 338 destLen = nfs4_cis_prepare( src , (int32_t)strlen(src), dest, destLen, &parseError, &status); in Test_nfs4_cis_prep() 450 int32_t destLen in Test_nfs4_mixed_prep() local 510 int32_t destLen = nfs4_cs_prepare(src, srcLen, dest, MAX_BUFFER_SIZE, false, &parseError, &status); Test_nfs4_cs_prep() local 533 int32_t destLen = nfs4_cs_prepare(src, srcLen, dest, MAX_BUFFER_SIZE, false, &parseError, &status); Test_nfs4_cs_prep() local 556 int32_t destLen = nfs4_cs_prepare(src, srcLen, dest, MAX_BUFFER_SIZE, true, &parseError, &status); Test_nfs4_cs_prep() local 582 int32_t destLen = nfs4_cs_prepare(src, srcLen, dest, MAX_BUFFER_SIZE, false, &parseError, &status); Test_nfs4_cs_prep() local [all...] |
/third_party/bounds_checking_function/src/ |
H A D | strncat_s.c | 22 size_t destLen; in SecDoCatLimit() local 24 SECUREC_CALC_STR_LEN(strDest, destMax, &destLen); in SecDoCatLimit() 31 if (SECUREC_CAT_STRING_IS_OVERLAP(strDest, destLen, strSrc, srcLen)) { in SecDoCatLimit() 33 if (strDest + destLen <= strSrc && destLen == destMax) { in SecDoCatLimit() 40 if (srcLen + destLen >= destMax || strDest == strSrc) { in SecDoCatLimit() 42 if (destLen == destMax) { in SecDoCatLimit() 49 SECUREC_MEMCPY_WARP_OPT(strDest + destLen, strSrc, srcLen); /* No terminator */ in SecDoCatLimit() 50 *(strDest + destLen + srcLen) = '\0'; in SecDoCatLimit()
|
H A D | strcat_s.c | 22 size_t destLen; in SecDoCat() local 25 SECUREC_CALC_STR_LEN(strDest, destMax, &destLen); in SecDoCat() 27 maxSrcLen = destMax - destLen; in SecDoCat() 30 if (SECUREC_CAT_STRING_IS_OVERLAP(strDest, destLen, strSrc, srcLen)) { in SecDoCat() 32 if (strDest + destLen <= strSrc && destLen == destMax) { in SecDoCat() 39 if (srcLen + destLen >= destMax || strDest == strSrc) { in SecDoCat() 41 if (destLen == destMax) { in SecDoCat() 48 SECUREC_MEMCPY_WARP_OPT(strDest + destLen, strSrc, srcLen + 1); /* Single character length include \0 */ in SecDoCat()
|
H A D | wcsncat_s.c | 23 size_t destLen; in SecDoCatLimitW() local 25 SECUREC_CALC_WSTR_LEN(strDest, destMax, &destLen); in SecDoCatLimitW() 28 if (SECUREC_CAT_STRING_IS_OVERLAP(strDest, destLen, strSrc, srcLen)) { in SecDoCatLimitW() 30 if (strDest + destLen <= strSrc && destLen == destMax) { in SecDoCatLimitW() 37 if (srcLen + destLen >= destMax || strDest == strSrc) { in SecDoCatLimitW() 39 if (destLen == destMax) { in SecDoCatLimitW() 46 SECUREC_MEMCPY_WARP_OPT(strDest + destLen, strSrc, srcLen * sizeof(wchar_t)); /* no terminator */ in SecDoCatLimitW() 47 *(strDest + destLen + srcLen) = L'\0'; in SecDoCatLimitW()
|
H A D | wcscat_s.c | 22 size_t destLen; in SecDoCatW() local 27 SECUREC_CALC_WSTR_LEN(strDest, destMax, &destLen); in SecDoCatW() 28 maxCount = destMax - destLen; in SecDoCatW() 31 if (SECUREC_CAT_STRING_IS_OVERLAP(strDest, destLen, strSrc, srcLen)) { in SecDoCatW() 33 if (strDest + destLen <= strSrc && destLen == destMax) { in SecDoCatW() 40 if (srcLen + destLen >= destMax || strDest == strSrc) { in SecDoCatW() 42 if (destLen == destMax) { in SecDoCatW() 50 SECUREC_MEMCPY_WARP_OPT(strDest + destLen, strSrc, (srcLen + 1) * sizeof(wchar_t)); in SecDoCatW()
|
/third_party/skia/third_party/externals/brotli/java/org/brotli/dec/ |
H A D | BrotliInputStream.java | 126 public int read(byte[] destBuffer, int destOffset, int destLen) throws IOException { in read() argument 129 } else if (destLen < 0) { in read() 130 throw new IllegalArgumentException("Bad length: " + destLen); in read() 131 } else if (destOffset + destLen > destBuffer.length) { in read() 133 "Buffer overflow: " + (destOffset + destLen) + " > " + destBuffer.length); in read() 134 } else if (destLen == 0) { in read() 139 copyLen = Math.min(copyLen, destLen); in read() 143 destLen -= copyLen; in read() 144 if (destLen == 0) { in read() 151 state.outputLength = destLen; in read() [all...] |
/third_party/node/deps/v8/third_party/zlib/ |
H A D | uncompr.c | 13 the byte length of the source buffer. Upon entry, *destLen is the total size 18 *destLen is the size of the decompressed data and *sourceLen is the number 27 int ZEXPORT uncompress2 (dest, destLen, source, sourceLen) in uncompress2() 29 uLongf *destLen; 37 Byte buf[1]; /* for detection of incomplete stream when *destLen == 0 */ 40 if (*destLen) { 41 left = *destLen; 42 *destLen = 0; 75 *destLen = stream.total_out; 86 int ZEXPORT uncompress (dest, destLen, sourc [all...] |
H A D | compress.c | 14 length of the source buffer. Upon entry, destLen is the total size of the 16 12 bytes. Upon exit, destLen is the actual size of the compressed buffer. 22 int ZEXPORT compress2 (dest, destLen, source, sourceLen, level) in compress2() 24 uLongf *destLen; 34 left = *destLen; 35 *destLen = 0; 61 *destLen = stream.total_out; 68 int ZEXPORT compress (dest, destLen, source, sourceLen) in compress() 70 uLongf *destLen; 74 return compress2(dest, destLen, sourc [all...] |
/third_party/skia/third_party/externals/zlib/ |
H A D | uncompr.c | 13 the byte length of the source buffer. Upon entry, *destLen is the total size 18 *destLen is the size of the decompressed data and *sourceLen is the number 27 int ZEXPORT uncompress2 (dest, destLen, source, sourceLen) in uncompress2() 29 uLongf *destLen; 37 Byte buf[1]; /* for detection of incomplete stream when *destLen == 0 */ 40 if (*destLen) { 41 left = *destLen; 42 *destLen = 0; 75 *destLen = stream.total_out; 86 int ZEXPORT uncompress (dest, destLen, sourc [all...] |
H A D | compress.c | 14 length of the source buffer. Upon entry, destLen is the total size of the 16 12 bytes. Upon exit, destLen is the actual size of the compressed buffer. 22 int ZEXPORT compress2 (dest, destLen, source, sourceLen, level) in compress2() 24 uLongf *destLen; 34 left = *destLen; 35 *destLen = 0; 61 *destLen = stream.total_out; 68 int ZEXPORT compress (dest, destLen, source, sourceLen) in compress() 70 uLongf *destLen; 74 return compress2(dest, destLen, sourc [all...] |
/third_party/libwebsockets/win32port/zlib/ |
H A D | compress.c | 14 length of the source buffer. Upon entry, destLen is the total size of the
16 12 bytes. Upon exit, destLen is the actual size of the compressed buffer.
22 int ZEXPORT compress2 (dest, destLen, source, sourceLen, level)
in compress2() 24 uLongf *destLen;
39 stream.avail_out = (uInt)*destLen;
40 if ((uLong)stream.avail_out != *destLen) return Z_BUF_ERROR;
54 *destLen = stream.total_out;
62 int ZEXPORT compress (dest, destLen, source, sourceLen)
in compress() 64 uLongf *destLen;
68 return compress2(dest, destLen, sourc [all...] |
H A D | uncompr.c | 13 the byte length of the source buffer. Upon entry, destLen is the total
18 Upon exit, destLen is the actual size of the compressed buffer.
24 int ZEXPORT uncompress (dest, destLen, source, sourceLen)
in uncompress() 26 uLongf *destLen;
39 stream.avail_out = (uInt)*destLen;
40 if ((uLong)stream.avail_out != *destLen) return Z_BUF_ERROR;
55 *destLen = stream.total_out;
|
/third_party/skia/third_party/externals/brotli/csharp/org/brotli/dec/ |
H A D | BrotliInputStream.cs | 141 public override int Read(byte[] destBuffer, int destOffset, int destLen)
in Read() argument 147 else if (destLen < 0)
in Read() 149 throw new System.ArgumentException("Bad length: " + destLen);
in Read() 151 else if (destOffset + destLen > destBuffer.Length)
in Read() 153 throw new System.ArgumentException("Buffer overflow: " + (destOffset + destLen) + " > " + destBuffer.Length);
in Read() 155 else if (destLen == 0)
in Read() 162 copyLen = System.Math.Min(copyLen, destLen);
in Read() 166 destLen -= copyLen;
in Read() 167 if (destLen == 0)
in Read() 176 state.outputLength = destLen;
in Read() [all...] |
/third_party/node/deps/zlib/ |
H A D | uncompr.c | 13 the byte length of the source buffer. Upon entry, *destLen is the total size 18 *destLen is the size of the decompressed data and *sourceLen is the number 27 int ZEXPORT uncompress2(Bytef *dest, uLongf *destLen, const Bytef *source, in uncompress2() argument 33 Byte buf[1]; /* for detection of incomplete stream when *destLen == 0 */ in uncompress2() 36 if (*destLen) { in uncompress2() 37 left = *destLen; in uncompress2() 38 *destLen = 0; in uncompress2() 71 *destLen = stream.total_out; in uncompress2() 82 int ZEXPORT uncompress(Bytef *dest, uLongf *destLen, const Bytef *source, in uncompress() argument 84 return uncompress2(dest, destLen, sourc in uncompress() [all...] |
H A D | compress.c | 14 length of the source buffer. Upon entry, destLen is the total size of the 16 12 bytes. Upon exit, destLen is the actual size of the compressed buffer. 22 int ZEXPORT compress2(Bytef *dest, uLongf *destLen, const Bytef *source, in compress2() argument 29 left = *destLen; in compress2() 30 *destLen = 0; in compress2() 56 *destLen = stream.total_out; in compress2() 63 int ZEXPORT compress(Bytef *dest, uLongf *destLen, const Bytef *source, in compress() argument 65 return compress2(dest, destLen, source, sourceLen, Z_DEFAULT_COMPRESSION); in compress()
|
/third_party/zlib/ |
H A D | uncompr.c | 13 the byte length of the source buffer. Upon entry, *destLen is the total size 18 *destLen is the size of the decompressed data and *sourceLen is the number 27 int ZEXPORT uncompress2(Bytef *dest, uLongf *destLen, const Bytef *source, in uncompress2() argument 33 Byte buf[1]; /* for detection of incomplete stream when *destLen == 0 */ in uncompress2() 36 if (*destLen) { in uncompress2() 37 left = *destLen; in uncompress2() 38 *destLen = 0; in uncompress2() 71 *destLen = stream.total_out; in uncompress2() 82 int ZEXPORT uncompress(Bytef *dest, uLongf *destLen, const Bytef *source, in uncompress() argument 84 return uncompress2(dest, destLen, sourc in uncompress() [all...] |
H A D | compress.c | 14 length of the source buffer. Upon entry, destLen is the total size of the 16 12 bytes. Upon exit, destLen is the actual size of the compressed buffer. 22 int ZEXPORT compress2(Bytef *dest, uLongf *destLen, const Bytef *source, in compress2() argument 29 left = *destLen; in compress2() 30 *destLen = 0; in compress2() 56 *destLen = stream.total_out; in compress2() 63 int ZEXPORT compress(Bytef *dest, uLongf *destLen, const Bytef *source, in compress() argument 65 return compress2(dest, destLen, source, sourceLen, Z_DEFAULT_COMPRESSION); in compress()
|
/third_party/lzma/CPP/Common/ |
H A D | UTFConvert.cpp | 339 static bool Utf8_To_Utf16(wchar_t *dest, size_t *destLen, const char *src, const char *srcLim, unsigned flags) throw()
in Utf8_To_Utf16() argument 348 *destLen = destPos;
in Utf8_To_Utf16() 663 size_t destLen = 0;
in Convert_UTF8_Buf_To_Unicode() local 664 Utf8_To_Utf16(NULL, &destLen, src, src + srcSize, flags);
in Convert_UTF8_Buf_To_Unicode() 665 bool res = Utf8_To_Utf16(dest.GetBuf((unsigned)destLen), &destLen, src, src + srcSize, flags);
in Convert_UTF8_Buf_To_Unicode() 666 dest.ReleaseBuf_SetEnd((unsigned)destLen);
in Convert_UTF8_Buf_To_Unicode() 709 const size_t destLen = Utf16_To_Utf8_Calc(src, src.Ptr(src.Len()), flags);
in ConvertUnicodeToUTF8_Flags() local 710 char *destStart = dest.GetBuf((unsigned)destLen);
in ConvertUnicodeToUTF8_Flags() 712 dest.ReleaseBuf_SetEnd((unsigned)destLen);
in ConvertUnicodeToUTF8_Flags() 752 const size_t destLen = Utf16_To_Utf8_Calc(src, src.Ptr(src.Len()), flags); Convert_Unicode_To_UTF8_Buf() local [all...] |
/third_party/lzma/C/ |
H A D | Lzma86Dec.c | 23 SRes Lzma86_Decode(Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen)
in Lzma86_Decode() argument 37 *destLen = 0;
in Lzma86_Decode() 42 res = LzmaDecode(dest, destLen, src + LZMA86_HEADER_SIZE, &inSizePure,
in Lzma86_Decode() 50 z7_BranchConvSt_X86_Dec(dest, *destLen, 0, &x86State);
in Lzma86_Decode()
|
H A D | LzmaLib.c | 11 Z7_STDAPI LzmaCompress(unsigned char *dest, size_t *destLen, const unsigned char *src, size_t srcLen,
in LzmaCompress() argument 32 return LzmaEncode(dest, destLen, src, srcLen, &props, outProps, outPropsSize, 0,
in LzmaCompress() 37 Z7_STDAPI LzmaUncompress(unsigned char *dest, size_t *destLen, const unsigned char *src, size_t *srcLen,
in LzmaUncompress() argument 41 return LzmaDecode(dest, destLen, src, srcLen, props, (unsigned)propsSize, LZMA_FINISH_ANY, &status, &g_Alloc);
in LzmaUncompress()
|
H A D | Lzma86Enc.c | 14 int Lzma86_Encode(Byte *dest, size_t *destLen, const Byte *src, size_t srcLen,
in Lzma86_Encode() argument 17 size_t outSize2 = *destLen;
in Lzma86_Encode() 26 *destLen = 0;
in Lzma86_Encode() 98 *destLen = LZMA86_HEADER_SIZE + minSize;
in Lzma86_Encode()
|
/third_party/icu/icu4c/source/test/intltest/ |
H A D | testidna.cpp | 460 int32_t destLen = 0; in testAPI() local 475 destLen = func(src,-1,NULL,0,options, &parseError , &status); in testAPI() 482 if(destLen+1 < MAX_DEST_SIZE){ in testAPI() 484 destLen = func(src,-1,dest,destLen+1,options, &parseError, &status); in testAPI() 486 if(U_SUCCESS(status) && expectedStatus != U_IDNA_STD3_ASCII_RULES_ERROR&& (doCompare==true) && u_strCaseCompare(dest,destLen, expected,expectedLen,0,&status)!=0){ in testAPI() 489 + " Got: " + prettify(UnicodeString(dest,destLen)) in testAPI() 509 destLen = func(src,-1,NULL,0,options | UIDNA_ALLOW_UNASSIGNED, &parseError, &status); in testAPI() 512 if(destLen+1 < MAX_DEST_SIZE){ in testAPI() 514 destLen in testAPI() [all...] |
/third_party/icu/icu4c/source/tools/genrb/ |
H A D | prscmnts.cpp | 141 int32_t destLen = stringArray[0].extract(*dest, destCapacity, *status); in getDescription() local 142 return trim(*dest, destLen, status); in getDescription() 232 int32_t destLen = getText(source, srcLen, dest, destCapacity, notePatternString, status); in getTranslate() local 233 return trim(*dest, destLen, status); in getTranslate() 242 int32_t destLen = getText(source, srcLen, dest, destCapacity, notePatternString, status); in getNote() local 243 return trim(*dest, destLen, status); in getNote()
|
/third_party/node/deps/icu-small/source/tools/genrb/ |
H A D | prscmnts.cpp | 141 int32_t destLen = stringArray[0].extract(*dest, destCapacity, *status); in getDescription() local 142 return trim(*dest, destLen, status); in getDescription() 232 int32_t destLen = getText(source, srcLen, dest, destCapacity, notePatternString, status); in getTranslate() local 233 return trim(*dest, destLen, status); in getTranslate() 242 int32_t destLen = getText(source, srcLen, dest, destCapacity, notePatternString, status); in getNote() local 243 return trim(*dest, destLen, status); in getNote()
|