Home
last modified time | relevance | path

Searched refs:newBuffer (Results 1 – 24 of 24) sorted by relevance

/external/lzma/CPP/Common/
DBuffer.h31 T *newBuffer; in SetCapacity() local
34 newBuffer = new T[newCapacity]; in SetCapacity()
36 memmove(newBuffer, _items, MyMin(_capacity, newCapacity) * sizeof(T)); in SetCapacity()
39 newBuffer = 0; in SetCapacity()
41 _items = newBuffer; in SetCapacity()
DMyString.h172 T *newBuffer = new T[realCapacity]; in SetCapacity() local
176 newBuffer[i] = _chars[i]; in SetCapacity()
179 _chars = newBuffer; in SetCapacity()
/external/chromium_org/third_party/WebKit/Source/wtf/
DArrayBufferBuilder.cpp67 RefPtr<ArrayBuffer> newBuffer = ArrayBuffer::create(newBufferSize, 1); in expandCapacity() local
68 if (!newBuffer) in expandCapacity()
71 memcpy(newBuffer->data(), m_buffer->data(), m_bytesUsed); in expandCapacity()
72 m_buffer = newBuffer; in expandCapacity()
/external/chromium_org/third_party/webrtc/video_engine/test/libvietest/testbed/
Dtb_I420_codec.cc105 uint8_t* newBuffer = new uint8_t[newSize]; in InitEncode() local
106 if (newBuffer == NULL) in InitEncode()
111 _encodedImage._buffer = newBuffer; in InitEncode()
150 uint8_t* newBuffer = new uint8_t[reqSize]; in Encode() local
151 if (newBuffer == NULL) in Encode()
156 _encodedImage._buffer = newBuffer; in Encode()
/external/chromium_org/third_party/webrtc/modules/video_coding/codecs/test_framework/
Dnormal_async_test.cc233 VideoFrame *newBuffer = new VideoFrame(); in Encoded() local
234 newBuffer->VerifyAndAllocate(encodedImage._size); in Encoded()
242 _test.CopyEncodedImage(*newBuffer, encodedImage, codecSpecificInfoCopy); in Encoded()
245 if (fwrite(newBuffer->Buffer(), 1, newBuffer->Length(), in Encoded()
246 _encodedFile) != newBuffer->Length()) { in Encoded()
250 _frameQueue->PushFrame(newBuffer, codecSpecificInfoCopy); in Encoded()
/external/icu/icu4c/source/i18n/
Ducoleitr.cpp95 RCEI *newBuffer = NEW_ARRAY(RCEI, bufferSize + BUFFER_GROW); in put() local
97 ARRAY_COPY(newBuffer, buffer, bufferSize); in put()
103 buffer = newBuffer; in put()
150 PCEI *newBuffer = NEW_ARRAY(PCEI, bufferSize + BUFFER_GROW); in put() local
152 ARRAY_COPY(newBuffer, buffer, bufferSize); in put()
158 buffer = newBuffer; in put()
Dcollationiterator.cpp108 newBuffer.setTo(c); in setFirstSkipped()
112 newBuffer.append(c); in skip()
115 void recordMatch() { skipLengthAtMatch = newBuffer.length(); } in recordMatch()
120 oldBuffer.replace(0, pos, newBuffer, 0, skipLengthAtMatch); in replaceMatch()
133 UnicodeString newBuffer; member in SkippedState
Ddigitlst.cpp885 decNumber *newBuffer = fStorage.resize(requestedCapacity, fStorage.getCapacity()); in ensureCapacity() local
886 if (newBuffer == NULL) { in ensureCapacity()
891 fDecNumber = newBuffer; in ensureCapacity()
Drulebasedcollator.cpp130 uint8_t *newBuffer = key_.reallocate(newCapacity, length); in Resize() local
131 if (newBuffer == NULL) { in Resize()
135 buffer_ = reinterpret_cast<char *>(newBuffer); in Resize()
/external/icu/icu4c/source/common/
Dustr_wcs.cpp42 char *newBuffer=(char *)uprv_malloc(reqCapacity*size); in u_growAnyBufferFromStatic() local
43 if(newBuffer!=NULL) { in u_growAnyBufferFromStatic()
45 uprv_memcpy(newBuffer, *pBuffer, length*size); in u_growAnyBufferFromStatic()
57 *pBuffer=newBuffer; in u_growAnyBufferFromStatic()
58 return (UBool)(newBuffer!=NULL); in u_growAnyBufferFromStatic()
Dsimplepatternformatter.cpp310 int32_t *newBuffer = (int32_t *) uprv_malloc(2 * newCapacity * sizeof(int32_t)); in ensureCapacity() local
311 if (newBuffer == NULL) { in ensureCapacity()
316 uprv_memcpy(newBuffer, placeholdersByOffset, 2 * placeholderSize * sizeof(int32_t)); in ensureCapacity()
324 placeholdersByOffset = newBuffer; in ensureCapacity()
/external/chromium_org/third_party/icu/source/common/
Dustr_wcs.c39 void *newBuffer=uprv_malloc(reqCapacity*size); in u_growAnyBufferFromStatic() local
40 if(newBuffer!=NULL) { in u_growAnyBufferFromStatic()
42 uprv_memcpy(newBuffer, *pBuffer, length*size); in u_growAnyBufferFromStatic()
54 *pBuffer=newBuffer; in u_growAnyBufferFromStatic()
55 return (UBool)(newBuffer!=NULL); in u_growAnyBufferFromStatic()
/external/chromium_org/third_party/webrtc/modules/video_coding/main/source/
Dencoded_frame.cc157 uint8_t* newBuffer = new uint8_t[minimumSize]; in VerifyAndAllocate() local
161 memcpy(newBuffer, _buffer, _size); in VerifyAndAllocate()
164 _buffer = newBuffer; in VerifyAndAllocate()
/external/chromium_org/third_party/webrtc/modules/video_coding/codecs/i420/main/source/
Di420.cc60 uint8_t* newBuffer = new uint8_t[newSize]; in InitEncode() local
61 if (newBuffer == NULL) { in InitEncode()
65 _encodedImage._buffer = newBuffer; in InitEncode()
/external/chromium_org/third_party/mesa/src/src/mesa/main/
Dimports.c218 void *newBuffer = malloc(newSize); in _mesa_realloc() local
219 if (newBuffer && oldBuffer && copySize > 0) in _mesa_realloc()
220 memcpy(newBuffer, oldBuffer, copySize); in _mesa_realloc()
223 return newBuffer; in _mesa_realloc()
/external/mesa3d/src/mesa/main/
Dimports.c218 void *newBuffer = malloc(newSize); in _mesa_realloc() local
219 if (newBuffer && oldBuffer && copySize > 0) in _mesa_realloc()
220 memcpy(newBuffer, oldBuffer, copySize); in _mesa_realloc()
223 return newBuffer; in _mesa_realloc()
/external/chromium_org/third_party/icu/source/i18n/
Ducoleitr.cpp92 RCEI *newBuffer = NEW_ARRAY(RCEI, bufferSize + BUFFER_GROW); in put() local
94 ARRAY_COPY(newBuffer, buffer, bufferSize); in put()
100 buffer = newBuffer; in put()
170 PCEI *newBuffer = NEW_ARRAY(PCEI, bufferSize + BUFFER_GROW); in put() local
172 ARRAY_COPY(newBuffer, buffer, bufferSize); in put()
178 buffer = newBuffer; in put()
Ddigitlst.cpp812 decNumber *newBuffer = fStorage.resize(requestedCapacity, fStorage.getCapacity()); in ensureCapacity() local
813 if (newBuffer == NULL) { in ensureCapacity()
818 fDecNumber = newBuffer; in ensureCapacity()
Ducol.cpp305 int32_t *newBuffer = reinterpret_cast<int32_t *>(uprv_malloc(newCapacity * 4)); in appendOffset() local
306 if(newBuffer == NULL) { in appendOffset()
311 uprv_memcpy(newBuffer, offsetBuffer, length * 4); in appendOffset()
314 offsetBuffer = newBuffer; in appendOffset()
/external/eigen/Eigen/src/SparseCore/
DAmbiVector.h92 Scalar* newBuffer = new Scalar[allocSize]; in reallocateSparse() local
93 memcpy(newBuffer, m_buffer, copyElements * sizeof(ListEl)); in reallocateSparse()
95 m_buffer = newBuffer; in reallocateSparse()
/external/deqp/framework/delibs/decpp/
DdeArrayBuffer.hpp143 ArrayBuffer<T,Alignment,Stride> newBuffer(numElements); in setStorage() local
144 swap(newBuffer); in setStorage()
/external/chromium_org/third_party/angle/src/libGLESv2/renderer/d3d11/
DBufferStorage11.cpp639 ID3D11Buffer *newBuffer; in resize() local
640 HRESULT result = device->CreateBuffer(&bufferDesc, NULL, &newBuffer); in resize()
660 context->CopySubresourceRegion(newBuffer, 0, 0, 0, 0, mNativeBuffer, 0, &srcBox); in resize()
665 mNativeBuffer = newBuffer; in resize()
/external/smali/smali/src/main/java/org/jf/smali/
DsmaliFlexLexer.java3050 char newBuffer[] = new char[zzCurrentPos*2]; in zzRefill() local
3051 System.arraycopy(zzBuffer, 0, newBuffer, 0, zzBuffer.length); in zzRefill()
3052 zzBuffer = newBuffer; in zzRefill()
/external/libcxxabi/src/Unwind/
DUnwindCursor.hpp119 entry *newBuffer = (entry *)malloc(newSize * sizeof(entry)); in add() local
120 memcpy(newBuffer, _buffer, oldSize * sizeof(entry)); in add()
123 _buffer = newBuffer; in add()
124 _bufferUsed = &newBuffer[oldSize]; in add()
125 _bufferEnd = &newBuffer[newSize]; in add()