Home
last modified time | relevance | path

Searched refs:newArray (Results 1 – 25 of 43) sorted by relevance

12

/third_party/protobuf/java/core/src/main/java/com/google/protobuf/
DProtobufArrayList.java71 E[] newArray = Arrays.copyOf(array, capacity); in mutableCopyWithCapacity() local
73 return new ProtobufArrayList<E>(newArray, size); in mutableCopyWithCapacity()
83 E[] newArray = Arrays.copyOf(array, length); in add() local
85 array = newArray; in add()
108 E[] newArray = createArray(length); in add() local
111 System.arraycopy(array, 0, newArray, 0, index); in add()
114 System.arraycopy(array, index, newArray, index + 1, size - index); in add()
115 array = newArray; in add()
DBooleanArrayList.java200 boolean[] newArray = new boolean[length]; in addBoolean()
202 System.arraycopy(array, 0, newArray, 0, size); in addBoolean()
203 array = newArray; in addBoolean()
222 boolean[] newArray = new boolean[length]; in addBoolean()
225 System.arraycopy(array, 0, newArray, 0, index); in addBoolean()
228 System.arraycopy(array, index, newArray, index + 1, size - index); in addBoolean()
229 array = newArray; in addBoolean()
DLongArrayList.java199 long[] newArray = new long[length]; in addLong() local
201 System.arraycopy(array, 0, newArray, 0, size); in addLong()
202 array = newArray; in addLong()
221 long[] newArray = new long[length]; in addLong() local
224 System.arraycopy(array, 0, newArray, 0, index); in addLong()
227 System.arraycopy(array, index, newArray, index + 1, size - index); in addLong()
228 array = newArray; in addLong()
DIntArrayList.java199 int[] newArray = new int[length]; in addInt() local
201 System.arraycopy(array, 0, newArray, 0, size); in addInt()
202 array = newArray; in addInt()
221 int[] newArray = new int[length]; in addInt() local
224 System.arraycopy(array, 0, newArray, 0, index); in addInt()
227 System.arraycopy(array, index, newArray, index + 1, size - index); in addInt()
228 array = newArray; in addInt()
DFloatArrayList.java199 float[] newArray = new float[length]; in addFloat() local
201 System.arraycopy(array, 0, newArray, 0, size); in addFloat()
202 array = newArray; in addFloat()
221 float[] newArray = new float[length]; in addFloat() local
224 System.arraycopy(array, 0, newArray, 0, index); in addFloat()
227 System.arraycopy(array, index, newArray, index + 1, size - index); in addFloat()
228 array = newArray; in addFloat()
DDoubleArrayList.java200 double[] newArray = new double[length]; in addDouble() local
202 System.arraycopy(array, 0, newArray, 0, size); in addDouble()
203 array = newArray; in addDouble()
222 double[] newArray = new double[length]; in addDouble() local
225 System.arraycopy(array, 0, newArray, 0, index); in addDouble()
228 System.arraycopy(array, index, newArray, index + 1, size - index); in addDouble()
229 array = newArray; in addDouble()
/third_party/flutter/skia/third_party/externals/sfntly/java/src/com/google/typography/font/sfntly/data/
DGrowableMemoryByteArray.java78 byte[] newArray = new byte[newSize]; in growTo()
79 System.arraycopy(b, 0, newArray, 0, b.length); in growTo()
80 b = newArray; in growTo()
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/sfntly/data/
DGrowableMemoryByteArray.java78 byte[] newArray = new byte[newSize]; in growTo()
79 System.arraycopy(b, 0, newArray, 0, b.length); in growTo()
80 b = newArray; in growTo()
/third_party/typescript/tests/ts_extra_tests/test_ts_cases/spec/functions/asynchronous_functions/
Dasynchronous_functions_4.ts26 import { newArray } from './asynchronous_functions_3.js';
35 let arr = newArray(15, 5);
Dasynchronous_functions_2.ts39 function newArray() { function
60 let arr2 = newArray();
Dasynchronous_functions_3.ts42 export function newArray(len: number, step: number = 1) { function
51 let arr = newArray(15);
/third_party/typescript/tests/ts_extra_tests/test_ts_cases/2.3/async_iteration/async_generators/
Dasync_generators.ts44 function newArray() { function
70 let arr2 = newArray();
/third_party/jerryscript/tests/jerry/es2015/
Dobject-prototype-tostring.js99 var newArray = new typedArray (); variable
100 assert (newArray[Symbol.toStringTag] === typedArrayTypes[i]);
101 assert (Object.prototype.toString.call (newArray) === "[object " + typedArrayTypes[i] + "]");
/third_party/icu/icu4c/source/common/
Dedits.cpp50 uint16_t *newArray = (uint16_t *)uprv_malloc((size_t)length * 2); in copyArray() local
51 if (newArray == nullptr) { in copyArray()
57 array = newArray; in copyArray()
235 uint16_t *newArray = (uint16_t *)uprv_malloc((size_t)newCapacity * 2); in growArray() local
236 if (newArray == NULL) { in growArray()
240 uprv_memcpy(newArray, array, (size_t)length * 2); in growArray()
242 array = newArray; in growArray()
Dunistr.cpp1506 UChar *newArray = getArrayStart(); in doReplace() local
1507 if(newArray != oldArray) { in doReplace()
1509 us_arrayCopy(oldArray, 0, newArray, 0, start); in doReplace()
1511 newArray, start + srcLength, in doReplace()
1516 newArray, start + srcLength, in doReplace()
1521 us_arrayCopy(srcChars, 0, newArray, start, srcLength); in doReplace()
1589 UChar *newArray = getArrayStart(); in doAppend() local
1597 if(srcChars != newArray + oldLength) { in doAppend()
1598 us_arrayCopy(srcChars, 0, newArray, oldLength, srcLength); in doAppend()
/third_party/flutter/skia/third_party/externals/icu/source/common/
Dedits.cpp50 uint16_t *newArray = (uint16_t *)uprv_malloc((size_t)length * 2); in copyArray() local
51 if (newArray == nullptr) { in copyArray()
57 array = newArray; in copyArray()
234 uint16_t *newArray = (uint16_t *)uprv_malloc((size_t)newCapacity * 2); in growArray() local
235 if (newArray == NULL) { in growArray()
239 uprv_memcpy(newArray, array, (size_t)length * 2); in growArray()
241 array = newArray; in growArray()
Dunistr.cpp1507 UChar *newArray = getArrayStart(); in doReplace() local
1508 if(newArray != oldArray) { in doReplace()
1510 us_arrayCopy(oldArray, 0, newArray, 0, start); in doReplace()
1512 newArray, start + srcLength, in doReplace()
1517 newArray, start + srcLength, in doReplace()
1522 us_arrayCopy(srcChars, 0, newArray, start, srcLength); in doReplace()
1589 UChar *newArray = getArrayStart(); in doAppend() local
1597 if(srcChars != newArray + oldLength) { in doAppend()
1598 us_arrayCopy(srcChars, 0, newArray, oldLength, srcLength); in doAppend()
/third_party/skia/third_party/externals/icu/source/common/
Dedits.cpp50 uint16_t *newArray = (uint16_t *)uprv_malloc((size_t)length * 2); in copyArray() local
51 if (newArray == nullptr) { in copyArray()
57 array = newArray; in copyArray()
235 uint16_t *newArray = (uint16_t *)uprv_malloc((size_t)newCapacity * 2); in growArray() local
236 if (newArray == NULL) { in growArray()
240 uprv_memcpy(newArray, array, (size_t)length * 2); in growArray()
242 array = newArray; in growArray()
Dunistr.cpp1506 UChar *newArray = getArrayStart(); in doReplace() local
1507 if(newArray != oldArray) { in doReplace()
1509 us_arrayCopy(oldArray, 0, newArray, 0, start); in doReplace()
1511 newArray, start + srcLength, in doReplace()
1516 newArray, start + srcLength, in doReplace()
1521 us_arrayCopy(srcChars, 0, newArray, start, srcLength); in doReplace()
1589 UChar *newArray = getArrayStart(); in doAppend() local
1597 if(srcChars != newArray + oldLength) { in doAppend()
1598 us_arrayCopy(srcChars, 0, newArray, oldLength, srcLength); in doAppend()
/third_party/node/deps/icu-small/source/common/
Dedits.cpp50 uint16_t *newArray = (uint16_t *)uprv_malloc((size_t)length * 2); in copyArray() local
51 if (newArray == nullptr) { in copyArray()
57 array = newArray; in copyArray()
235 uint16_t *newArray = (uint16_t *)uprv_malloc((size_t)newCapacity * 2); in growArray() local
236 if (newArray == NULL) { in growArray()
240 uprv_memcpy(newArray, array, (size_t)length * 2); in growArray()
242 array = newArray; in growArray()
Dunistr.cpp1506 UChar *newArray = getArrayStart(); in doReplace() local
1507 if(newArray != oldArray) { in doReplace()
1509 us_arrayCopy(oldArray, 0, newArray, 0, start); in doReplace()
1511 newArray, start + srcLength, in doReplace()
1516 newArray, start + srcLength, in doReplace()
1521 us_arrayCopy(srcChars, 0, newArray, start, srcLength); in doReplace()
1589 UChar *newArray = getArrayStart(); in doAppend() local
1597 if(srcChars != newArray + oldLength) { in doAppend()
1598 us_arrayCopy(srcChars, 0, newArray, oldLength, srcLength); in doAppend()
/third_party/protobuf/ruby/src/main/java/com/google/protobuf/jruby/
DRubyBuilder.java73 this.pendingList = runtime.newArray(); in initialize()
161 this.pendingList = context.runtime.newArray(); in finalizeToPool()
/third_party/cups-filters/filter/
Dpdf.cxx48 QPDFObjectHandle ret = QPDFObjectHandle::newArray(); in makeRealBox()
151 contents = QPDFObjectHandle::newArray(); in pdf_prepend_stream()
/third_party/cups-filters/filter/pdftopdf/
Dqpdf_tools.cc62 QPDFObjectHandle ret=QPDFObjectHandle::newArray(); in makeBox()
Dqpdf_cm.cc80 catalog.replaceKey("/OutputIntents",QPDFObjectHandle::newArray()); in addOutputIntent()

12