Home
last modified time | relevance | path

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

12

/external/libgdx/extensions/gdx-box2d/gdx-box2d-gwt/src/com/badlogic/gdx/physics/box2d/gwt/emu/org/jbox2d/common/
DBufferUtils.java14 T[] newBuffer = (T[]) ArrayReflection.newInstance(klass, newCapacity); in reallocateBuffer() local
16 System.arraycopy(oldBuffer, 0, newBuffer, 0, oldCapacity); in reallocateBuffer()
20 newBuffer[i] = ClassReflection.newInstance(klass); in reallocateBuffer()
25 return newBuffer; in reallocateBuffer()
31 int[] newBuffer = new int[newCapacity]; in reallocateBuffer() local
33 System.arraycopy(oldBuffer, 0, newBuffer, 0, oldCapacity); in reallocateBuffer()
35 return newBuffer; in reallocateBuffer()
41 float[] newBuffer = new float[newCapacity]; in reallocateBuffer() local
43 System.arraycopy(oldBuffer, 0, newBuffer, 0, oldCapacity); in reallocateBuffer()
45 return newBuffer; in reallocateBuffer()
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/heightmap/
DFluidSimHeightMap.java167 float[] newBuffer; in load() local
176 newBuffer = tempBuffer[curBuf]; in load()
185 neighborsValue += newBuffer[ind - 1]; in load()
189 neighborsValue += newBuffer[ind + 1]; in load()
193 neighborsValue += newBuffer[ind - size]; in load()
197 neighborsValue += newBuffer[ind + size]; in load()
203 oldBuffer[ind] = coefA * newBuffer[ind] + coefB in load()
/external/lzma/CPP/Common/
DMyBuffer.h75 T *newBuffer = NULL; in ChangeSize_KeepData() local
78 newBuffer = new T[newSize]; in ChangeSize_KeepData()
80 memcpy(newBuffer, _items, MyMin(MyMin(_size, keepSize), newSize) * sizeof(T)); in ChangeSize_KeepData()
83 _items = newBuffer; in ChangeSize_KeepData()
210 T *newBuffer = NULL; in SetSize() local
212 newBuffer = new T[size]; in SetSize()
214 _items = newBuffer; in SetSize()
DDynamicBuffer.h28 T *newBuffer = new T[newCap]; in Grow() local
29 memcpy(newBuffer, _items, _pos * sizeof(T)); in Grow()
31 _items = newBuffer; in Grow()
/external/libvncserver/examples/
Drotatetemplate.c8 OUT_T* newBuffer = (OUT_T*)malloc(w * h * sizeof(OUT_T)); in FUNCTION() local
12 newBuffer[FUNC(i, j)] = buffer[i + j * w]; in FUNCTION()
14 memcpy(buffer, newBuffer, w * h * sizeof(OUT_T)); in FUNCTION()
15 free(newBuffer); in FUNCTION()
/external/icu/android_icu4j/src/main/java/android/icu/impl/coll/
DUVector64.java43 long[] newBuffer = new long[newCapacity]; in ensureAppendCapacity() local
44 System.arraycopy(buffer, 0, newBuffer, 0, length); in ensureAppendCapacity()
45 buffer = newBuffer; in ensureAppendCapacity()
DUVector32.java43 int[] newBuffer = new int[newCapacity]; in ensureAppendCapacity() local
44 System.arraycopy(buffer, 0, newBuffer, 0, length); in ensureAppendCapacity()
45 buffer = newBuffer; in ensureAppendCapacity()
DCollationIterator.java56 long[] newBuffer = new long[capacity]; in ensureAppendCapacity() local
57 System.arraycopy(buffer, 0, newBuffer, 0, length); in ensureAppendCapacity()
58 buffer = newBuffer; in ensureAppendCapacity()
135 newBuffer.setLength(0); in setFirstSkipped()
136 newBuffer.appendCodePoint(c); in setFirstSkipped()
140 newBuffer.appendCodePoint(c); in skip()
143 void recordMatch() { skipLengthAtMatch = newBuffer.length(); } in recordMatch()
150 oldBuffer.delete(0, pos).insert(0, newBuffer, 0, skipLengthAtMatch); in replaceMatch()
162 private final StringBuilder newBuffer = new StringBuilder(); field in CollationIterator.SkippedState
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/
DUVector32.java39 int[] newBuffer = new int[newCapacity]; in ensureAppendCapacity() local
40 System.arraycopy(buffer, 0, newBuffer, 0, length); in ensureAppendCapacity()
41 buffer = newBuffer; in ensureAppendCapacity()
DUVector64.java39 long[] newBuffer = new long[newCapacity]; in ensureAppendCapacity() local
40 System.arraycopy(buffer, 0, newBuffer, 0, length); in ensureAppendCapacity()
41 buffer = newBuffer; in ensureAppendCapacity()
DCollationIterator.java54 long[] newBuffer = new long[capacity]; in ensureAppendCapacity() local
55 System.arraycopy(buffer, 0, newBuffer, 0, length); in ensureAppendCapacity()
56 buffer = newBuffer; in ensureAppendCapacity()
133 newBuffer.setLength(0); in setFirstSkipped()
134 newBuffer.appendCodePoint(c); in setFirstSkipped()
138 newBuffer.appendCodePoint(c); in skip()
141 void recordMatch() { skipLengthAtMatch = newBuffer.length(); } in recordMatch()
148 oldBuffer.delete(0, pos).insert(0, newBuffer, 0, skipLengthAtMatch); in replaceMatch()
160 private final StringBuilder newBuffer = new StringBuilder(); field in CollationIterator.SkippedState
/external/icu/icu4c/source/i18n/
Ducoleitr.cpp92 RCEI *newBuffer = NEW_ARRAY(RCEI, bufferSize + BUFFER_GROW); in put() local
93 if (newBuffer == NULL) { in put()
98 ARRAY_COPY(newBuffer, buffer, bufferSize); in put()
104 buffer = newBuffer; in put()
154 PCEI *newBuffer = NEW_ARRAY(PCEI, bufferSize + BUFFER_GROW); in put() local
155 if (newBuffer == NULL) { in put()
160 ARRAY_COPY(newBuffer, buffer, bufferSize); in put()
166 buffer = newBuffer; in put()
/external/libgdx/backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/
DGwtFileHandle.java173 byte[] newBuffer = new byte[buffer.length * 2]; in readBytes()
174 System.arraycopy(buffer, 0, newBuffer, 0, position); in readBytes()
175 buffer = newBuffer; in readBytes()
188 byte[] newBuffer = new byte[position]; in readBytes()
189 System.arraycopy(buffer, 0, newBuffer, 0, position); in readBytes()
190 buffer = newBuffer; in readBytes()
/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()
/external/libgdx/extensions/gdx-jnigen/src/com/badlogic/gdx/jnigen/
DFileDescriptor.java211 byte[] newBuffer = new byte[buffer.length * 2]; in readBytes()
212 System.arraycopy(buffer, 0, newBuffer, 0, position); in readBytes()
213 buffer = newBuffer; in readBytes()
226 byte[] newBuffer = new byte[position]; in readBytes()
227 System.arraycopy(buffer, 0, newBuffer, 0, position); in readBytes()
228 buffer = newBuffer; in readBytes()
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/file/
DBlenderInputStream.java133 byte[] newBuffer = new byte[cachedBuffer.length + (cachedBuffer.length >> 1)]; in readStreamToCache()
134 System.arraycopy(cachedBuffer, 0, newBuffer, 0, cachedBuffer.length); in readStreamToCache()
135 cachedBuffer = newBuffer; in readStreamToCache()
/external/webrtc/webrtc/modules/video_coding/codecs/i420/
Di420.cc62 uint8_t* newBuffer = new uint8_t[newSize]; in InitEncode() local
63 if (newBuffer == NULL) { in InitEncode()
67 _encodedImage._buffer = newBuffer; in InitEncode()
/external/jetty/src/java/org/eclipse/jetty/io/
DAbstractBuffers.java85 final protected Buffer newBuffer() in newBuffer() method in AbstractBuffers
105 final protected Buffer newBuffer(int size) in newBuffer() method in AbstractBuffers
DThreadLocalBuffers.java64 return newBuffer(); in getBuffer()
99 return newBuffer(size); in getBuffer()
DPooledBuffers.java63 buffer=newBuffer(); in getBuffer()
88 buffer=newBuffer(size); in getBuffer()
/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/libgdx/backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/preloader/
DFileWrapper.java211 byte[] newBuffer = new byte[buffer.length * 2]; in readBytes()
212 System.arraycopy(buffer, 0, newBuffer, 0, position); in readBytes()
213 buffer = newBuffer; in readBytes()
226 byte[] newBuffer = new byte[position]; in readBytes()
227 System.arraycopy(buffer, 0, newBuffer, 0, position); in readBytes()
228 buffer = newBuffer; in readBytes()
/external/webrtc/webrtc/modules/video_coding/
Dencoded_frame.cc214 uint8_t* newBuffer = new uint8_t[minimumSize]; in VerifyAndAllocate() local
217 memcpy(newBuffer, _buffer, _size); in VerifyAndAllocate()
220 _buffer = newBuffer; in VerifyAndAllocate()
/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.hpp173 ArrayBuffer<T,Alignment,Stride> newBuffer(numElements); in setStorage() local
174 swap(newBuffer); in setStorage()

12