/third_party/node/deps/npm/node_modules/iconv-lite/encodings/ |
H A D | dbcs-codec.js | 315 var newBuf = Buffer.alloc(str.length * (this.gb18030 ? 4 : 3)), 402 newBuf[j++] = 0x81 + Math.floor(dbcsCode / 12600); dbcsCode = dbcsCode % 12600; 403 newBuf[j++] = 0x30 + Math.floor(dbcsCode / 1260); dbcsCode = dbcsCode % 1260; 404 newBuf[j++] = 0x81 + Math.floor(dbcsCode / 10); dbcsCode = dbcsCode % 10; 405 newBuf[j++] = 0x30 + dbcsCode; 416 newBuf[j++] = dbcsCode; 419 newBuf[j++] = dbcsCode >> 8; // high byte 420 newBuf[j++] = dbcsCode & 0xFF; // low byte 423 newBuf[j++] = dbcsCode >> 16; 424 newBuf[ [all...] |
H A D | sbcs-codec.js | 61 var newBuf = Buffer.alloc(buf.length*2); 65 newBuf[idx2] = decodeBuf[idx1]; 66 newBuf[idx2+1] = decodeBuf[idx1+1]; 68 return newBuf.toString('ucs2');
|
/third_party/lzma/CPP/Common/ |
H A D | DynLimBuf.cpp | 43 Byte *newBuf = (Byte *)MyAlloc(n);
in operator +=() local 44 if (!newBuf)
in operator +=() 49 memcpy(newBuf, _chars, _pos);
in operator +=() 51 _chars = newBuf;
in operator +=() 79 Byte *newBuf = (Byte *)MyAlloc(n);
in operator +=() local 80 if (!newBuf)
in operator +=() 85 memcpy(newBuf, _chars, _pos);
in operator +=() 87 _chars = newBuf;
in operator +=()
|
H A D | MyString.cpp | 409 char *newBuf = MY_STRING_NEW_char((size_t)newLimit + 1);
in ReAlloc() local 410 memcpy(newBuf, _chars, (size_t)_len + 1);
in ReAlloc() 412 _chars = newBuf;
in ReAlloc() 420 char *newBuf = MY_STRING_NEW_char((size_t)newLimit + 1);
in ReAlloc2() local 421 newBuf[0] = 0;
in ReAlloc2() 423 _chars = newBuf;
in ReAlloc2() 544 char *newBuf = MY_STRING_NEW_char(1 + 1);
in operator =() local 546 _chars = newBuf;
in operator =() 561 char *newBuf = MY_STRING_NEW_char((size_t)len + 1);
in operator =() local 563 _chars = newBuf;
in operator =() 578 char *newBuf = MY_STRING_NEW_char((size_t)len + 1); operator =() local 603 char *newBuf = MY_STRING_NEW_char((size_t)len + 1); SetFromWStr_if_Ascii() local 699 char *newBuf = MY_STRING_NEW_char((size_t)len + 1); SetFrom() local 1005 wchar_t *newBuf = MY_STRING_NEW_wchar_t((size_t)newLimit + 1); ReAlloc() local 1016 wchar_t *newBuf = MY_STRING_NEW_wchar_t((size_t)newLimit + 1); ReAlloc2() local 1169 wchar_t *newBuf = MY_STRING_NEW_wchar_t(1 + 1); operator =() local 1186 wchar_t *newBuf = MY_STRING_NEW_wchar_t((size_t)len + 1); operator =() local 1203 wchar_t *newBuf = MY_STRING_NEW_wchar_t((size_t)len + 1); operator =() local 1217 wchar_t *newBuf = MY_STRING_NEW_wchar_t((size_t)len + 1); SetFrom() local 1255 wchar_t *newBuf = MY_STRING_NEW_wchar_t((size_t)len + 1); SetFromBstr() local 1295 wchar_t *newBuf = MY_STRING_NEW_wchar_t((size_t)len + 1); operator =() local 1670 wchar_t *newBuf = MY_STRING_NEW_wchar_t((size_t)len + 1); operator =() local 1685 wchar_t *newBuf = MY_STRING_NEW_wchar_t((size_t)len + 1); SetFromAscii() local 1704 wchar_t *newBuf = MY_STRING_NEW_wchar_t((size_t)len + 1); operator =() local [all...] |
/kernel/liteos_a/lib/libscrew/src/ |
H A D | los_seq_buf.c | 39 char *newBuf = NULL; in ExpandSeqBuf() local 50 newBuf = (char*)malloc(seqBuf->size <<= 1); in ExpandSeqBuf() 51 if (newBuf == NULL) { in ExpandSeqBuf() 54 (void)memset_s(newBuf + oldCount, seqBuf->size - oldCount, 0, seqBuf->size - oldCount); in ExpandSeqBuf() 56 ret = memcpy_s(newBuf, seqBuf->size, seqBuf->buf, oldCount); in ExpandSeqBuf() 58 free(newBuf); in ExpandSeqBuf() 64 seqBuf->buf = newBuf; in ExpandSeqBuf()
|
/third_party/mesa3d/src/util/ |
H A D | os_memory_aligned.h | 121 void *newBuf = os_malloc_aligned(newsize, alignment); in os_realloc_aligned() local 122 if (newBuf && ptr && copySize > 0) { in os_realloc_aligned() 123 memcpy(newBuf, ptr, copySize); in os_realloc_aligned() 127 return newBuf; in os_realloc_aligned()
|
/third_party/musl/libc-test/src/functional/ |
H A D | fopencookie_test.c | 50 char *newBuf;
in mwrite() local 55 newBuf = malloc(c->size);
in mwrite() 56 if (newBuf == NULL) {
in mwrite() 59 memcpy(newBuf, c->buf, c->len);
in mwrite() 62 c->buf = newBuf;
in mwrite()
|
/base/security/huks/frameworks/huks_standard/main/crypto_engine/rkc/src/ |
H A D | hks_rkc.c | 348 char *newBuf = (char *)HksMalloc(strLen + 1); /* 1: end char */ in CloneNewStr() local 349 HKS_IF_NULL_LOGE_RETURN(newBuf, NULL, "Malloc new buffer failed!") in CloneNewStr() 351 if (memcpy_s(newBuf, strLen, srcStr, strLen) != EOK) { in CloneNewStr() 353 HKS_FREE(newBuf); in CloneNewStr() 356 newBuf[strLen] = '\0'; in CloneNewStr() 358 return newBuf; in CloneNewStr()
|
/kernel/liteos_a/shell/full/src/cmds/ |
H A D | dmesg.c | 177 CHAR *newBuf = (CHAR *)addr + sizeof(DmesgInfo);
in OsCopyToNew() local 206 ret = memcpy_s(newBuf, bufSize, temp + copyStart, copyLen);
in OsCopyToNew()
|
/third_party/skia/third_party/externals/expat/expat/lib/ |
H A D | xmlparse.c | 2143 char *newBuf; in XML_GetBuffer() local 2156 newBuf = (char *)MALLOC(parser, bufferSize); in XML_GetBuffer() 2157 if (newBuf == 0) { in XML_GetBuffer() 2161 parser->m_bufferLim = newBuf + bufferSize; in XML_GetBuffer() 2164 memcpy(newBuf, &parser->m_bufferPtr[-keep], in XML_GetBuffer() 2168 parser->m_buffer = newBuf; in XML_GetBuffer() 2176 parser->m_bufferEnd = newBuf; in XML_GetBuffer() 2177 parser->m_bufferPtr = parser->m_buffer = newBuf; in XML_GetBuffer() 2181 memcpy(newBuf, parser->m_bufferPtr, in XML_GetBuffer() 2185 = newBuf in XML_GetBuffer() [all...] |
/third_party/python/Modules/expat/ |
H A D | xmlparse.c | 2112 char *newBuf; in XML_GetBuffer() local 2125 newBuf = (char *)MALLOC(parser, bufferSize); in XML_GetBuffer() 2126 if (newBuf == 0) { in XML_GetBuffer() 2130 parser->m_bufferLim = newBuf + bufferSize; in XML_GetBuffer() 2133 memcpy(newBuf, &parser->m_bufferPtr[-keep], in XML_GetBuffer() 2137 parser->m_buffer = newBuf; in XML_GetBuffer() 2145 parser->m_bufferEnd = newBuf; in XML_GetBuffer() 2146 parser->m_bufferPtr = parser->m_buffer = newBuf; in XML_GetBuffer() 2150 memcpy(newBuf, parser->m_bufferPtr, in XML_GetBuffer() 2154 = newBuf in XML_GetBuffer() [all...] |
/third_party/icu/icu4c/source/i18n/ |
H A D | rematch.cpp | 2007 UChar *newBuf = buffer.resize(length+1); // Leave space for terminating Nul. in utext_extract_replace() local 2008 if (newBuf == NULL) { in utext_extract_replace()
|
/third_party/node/deps/icu-small/source/i18n/ |
H A D | rematch.cpp | 2007 char16_t *newBuf = buffer.resize(length+1); // Leave space for terminating Nul. in utext_extract_replace() local 2008 if (newBuf == nullptr) { in utext_extract_replace()
|
/third_party/skia/third_party/externals/icu/source/i18n/ |
H A D | rematch.cpp | 1997 UChar *newBuf = buffer.resize(length+1); // Leave space for terminating Nul. in utext_extract_replace() local 1998 if (newBuf == NULL) { in utext_extract_replace()
|
/third_party/rust/crates/bindgen/bindgen-tests/tests/ |
H A D | stylo.hpp | [all...] |