Home
last modified time | relevance | path

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

/external/javassist/src/main/javassist/bytecode/
DByteStream.java188 byte[] newBuf = new byte[newLen > newCount ? newLen : newCount]; in enlarge()
189 System.arraycopy(buf, 0, newBuf, 0, count); in enlarge()
190 buf = newBuf; in enlarge()
DBytecode.java83 byte[] newBuf = new byte[newSize]; in addGap()
84 System.arraycopy(buffer, 0, newBuf, 0, size); in addGap()
85 buffer = newBuf; in addGap()
/external/chromium_org/third_party/mesa/src/src/mesa/main/
Dimports.c201 void *newBuf = _mesa_align_malloc(newSize, alignment); in _mesa_align_realloc()
202 if (newBuf && oldBuffer && copySize > 0) { in _mesa_align_realloc()
203 memcpy(newBuf, oldBuffer, copySize); in _mesa_align_realloc()
207 return newBuf; in _mesa_align_realloc()
/external/mesa3d/src/mesa/main/
Dimports.c201 void *newBuf = _mesa_align_malloc(newSize, alignment); in _mesa_align_realloc()
202 if (newBuf && oldBuffer && copySize > 0) { in _mesa_align_realloc()
203 memcpy(newBuf, oldBuffer, copySize); in _mesa_align_realloc()
207 return newBuf; in _mesa_align_realloc()
/external/chromium_org/net/third_party/nss/ssl/
Dsslsecur.c502 unsigned char *newBuf; in sslBuffer_Grow() local
504 newBuf = (unsigned char *) PORT_Realloc(b->buf, newLen); in sslBuffer_Grow()
506 newBuf = (unsigned char *) PORT_Alloc(newLen); in sslBuffer_Grow()
508 if (!newBuf) { in sslBuffer_Grow()
513 b->buf = newBuf; in sslBuffer_Grow()
/external/chromium_org/third_party/expat/files/lib/
Dxmlparse.c1716 char *newBuf; in XML_GetBuffer() local
1723 newBuf = (char *)MALLOC(bufferSize); in XML_GetBuffer()
1724 if (newBuf == 0) { in XML_GetBuffer()
1728 bufferLim = newBuf + bufferSize; in XML_GetBuffer()
1734 memcpy(newBuf, &bufferPtr[-keep], bufferEnd - bufferPtr + keep); in XML_GetBuffer()
1736 buffer = newBuf; in XML_GetBuffer()
1741 bufferEnd = newBuf + (bufferEnd - bufferPtr); in XML_GetBuffer()
1742 bufferPtr = buffer = newBuf; in XML_GetBuffer()
1746 memcpy(newBuf, bufferPtr, bufferEnd - bufferPtr); in XML_GetBuffer()
1749 bufferEnd = newBuf + (bufferEnd - bufferPtr); in XML_GetBuffer()
[all …]
/external/expat/lib/
Dxmlparse.c1716 char *newBuf; in XML_GetBuffer() local
1723 newBuf = (char *)MALLOC(bufferSize); in XML_GetBuffer()
1724 if (newBuf == 0) { in XML_GetBuffer()
1728 bufferLim = newBuf + bufferSize; in XML_GetBuffer()
1734 memcpy(newBuf, &bufferPtr[-keep], bufferEnd - bufferPtr + keep); in XML_GetBuffer()
1736 buffer = newBuf; in XML_GetBuffer()
1741 bufferEnd = newBuf + (bufferEnd - bufferPtr); in XML_GetBuffer()
1742 bufferPtr = buffer = newBuf; in XML_GetBuffer()
1746 memcpy(newBuf, bufferPtr, bufferEnd - bufferPtr); in XML_GetBuffer()
1749 bufferEnd = newBuf + (bufferEnd - bufferPtr); in XML_GetBuffer()
[all …]
/external/chromium_org/third_party/icu/source/i18n/
Ducol.cpp6988 uint32_t *newBuf; in ucol_CEBuf_Expand() local
6993 newBuf = (uint32_t *)uprv_malloc(newSize * sizeof(uint32_t)); in ucol_CEBuf_Expand()
6994 if(newBuf == NULL) { in ucol_CEBuf_Expand()
6998 uprv_memcpy(newBuf, b->buf, oldSize * sizeof(uint32_t)); in ucol_CEBuf_Expand()
7002 b->buf = newBuf; in ucol_CEBuf_Expand()