Home
last modified time | relevance | path

Searched refs:newBuf (Results 1 – 15 of 15) sorted by relevance

/third_party/node/deps/npm/node_modules/iconv-lite/encodings/
Ddbcs-codec.js284 var newBuf = Buffer.alloc(str.length * (this.gb18030 ? 4 : 3)),
371 newBuf[j++] = 0x81 + Math.floor(dbcsCode / 12600); dbcsCode = dbcsCode % 12600;
372 newBuf[j++] = 0x30 + Math.floor(dbcsCode / 1260); dbcsCode = dbcsCode % 1260;
373 newBuf[j++] = 0x81 + Math.floor(dbcsCode / 10); dbcsCode = dbcsCode % 10;
374 newBuf[j++] = 0x30 + dbcsCode;
385 newBuf[j++] = dbcsCode;
388 newBuf[j++] = dbcsCode >> 8; // high byte
389 newBuf[j++] = dbcsCode & 0xFF; // low byte
392 newBuf[j++] = dbcsCode >> 16;
393 newBuf[j++] = (dbcsCode >> 8) & 0xFF;
[all …]
Dsbcs-codec.js61 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/mesa3d/src/util/
Dos_memory_aligned.h121 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/ejdb/src/bindings/ejdb2_jni/src/main/java/com/softmotions/ejdb2/
DJSON.java505 char[] newBuf = new char[reusableChars.length * 2]; in readNumberImpl() local
506 System.arraycopy(reusableChars, 0, newBuf, 0, reusableChars.length); in readNumberImpl()
507 reusableChars = newBuf; in readNumberImpl()
672 char[] newBuf = new char[reusableChars.length * 2]; in readStringSlowPath() local
673 System.arraycopy(reusableChars, 0, newBuf, 0, reusableChars.length); in readStringSlowPath()
674 reusableChars = newBuf; in readStringSlowPath()
678 char[] newBuf = new char[reusableChars.length * 2]; in readStringSlowPath() local
679 System.arraycopy(reusableChars, 0, newBuf, 0, reusableChars.length); in readStringSlowPath()
680 reusableChars = newBuf; in readStringSlowPath()
689 char[] newBuf = new char[reusableChars.length * 2]; in readStringSlowPath() local
[all …]
/third_party/flatbuffers/tests/FlatBuffers.Test.Swift/Tests/FlatBuffers.Test.SwiftTests/
DFlatBuffersMonsterWriterTests.swift60 let newBuf = FlatBuffersUtils.removeSizePrefix(bb: bytes.buffer) in testCreateMonsterPrefixed() variable
61 readMonster(fb: newBuf) in testCreateMonsterPrefixed()
/third_party/expat/lib/
Dxmlparse.c2107 char *newBuf; in XML_GetBuffer() local
2120 newBuf = (char *)MALLOC(parser, bufferSize); in XML_GetBuffer()
2121 if (newBuf == 0) { in XML_GetBuffer()
2125 parser->m_bufferLim = newBuf + bufferSize; in XML_GetBuffer()
2128 memcpy(newBuf, &parser->m_bufferPtr[-keep], in XML_GetBuffer()
2132 parser->m_buffer = newBuf; in XML_GetBuffer()
2140 parser->m_bufferEnd = newBuf; in XML_GetBuffer()
2141 parser->m_bufferPtr = parser->m_buffer = newBuf; in XML_GetBuffer()
2145 memcpy(newBuf, parser->m_bufferPtr, in XML_GetBuffer()
2149 = newBuf in XML_GetBuffer()
[all …]
/third_party/python/Modules/expat/
Dxmlparse.c2096 char *newBuf; in XML_GetBuffer() local
2109 newBuf = (char *)MALLOC(parser, bufferSize); in XML_GetBuffer()
2110 if (newBuf == 0) { in XML_GetBuffer()
2114 parser->m_bufferLim = newBuf + bufferSize; in XML_GetBuffer()
2117 memcpy(newBuf, &parser->m_bufferPtr[-keep], in XML_GetBuffer()
2121 parser->m_buffer = newBuf; in XML_GetBuffer()
2129 parser->m_bufferEnd = newBuf; in XML_GetBuffer()
2130 parser->m_bufferPtr = parser->m_buffer = newBuf; in XML_GetBuffer()
2134 memcpy(newBuf, parser->m_bufferPtr, in XML_GetBuffer()
2138 = newBuf in XML_GetBuffer()
[all …]
/third_party/skia/third_party/externals/expat/expat/lib/
Dxmlparse.c2096 char *newBuf; in XML_GetBuffer() local
2109 newBuf = (char *)MALLOC(parser, bufferSize); in XML_GetBuffer()
2110 if (newBuf == 0) { in XML_GetBuffer()
2114 parser->m_bufferLim = newBuf + bufferSize; in XML_GetBuffer()
2117 memcpy(newBuf, &parser->m_bufferPtr[-keep], in XML_GetBuffer()
2121 parser->m_buffer = newBuf; in XML_GetBuffer()
2129 parser->m_bufferEnd = newBuf; in XML_GetBuffer()
2130 parser->m_bufferPtr = parser->m_buffer = newBuf; in XML_GetBuffer()
2134 memcpy(newBuf, parser->m_bufferPtr, in XML_GetBuffer()
2138 = newBuf in XML_GetBuffer()
[all …]
/third_party/flatbuffers/dart/lib/src/
Dbuilder.dart469 final newBuf = ByteData(size);
470 newBuf.buffer
/third_party/flatbuffers/dart/lib/
Dflat_buffers.dart723 ByteData newBuf = new ByteData(newCapacity);
724 newBuf.buffer
727 _buf = newBuf;
/third_party/icu/icu4c/source/i18n/
Drematch.cpp1997 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/skia/third_party/externals/icu/source/i18n/
Drematch.cpp1997 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/node/deps/icu-small/source/i18n/
Drematch.cpp2007 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/flutter/skia/third_party/externals/icu/source/i18n/
Drematch.cpp1992 UChar *newBuf = buffer.resize(length+1); // Leave space for terminating Nul. in utext_extract_replace() local
1993 if (newBuf == NULL) { in utext_extract_replace()
/third_party/node/doc/api/
Dbuffer.md3331 const newBuf = buffer.transcode(Buffer.from('€'), 'utf8', 'ascii');
3332 console.log(newBuf.toString('ascii'));