Home
last modified time | relevance | path

Searched refs:newbytes (Results 1 – 5 of 5) sorted by relevance

/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DByteArrayWrapper.java117 byte[] newbytes = new byte[capacity]; in ensureCapacity()
119 copyBytes(bytes, 0, newbytes, 0, size); in ensureCapacity()
121 bytes = newbytes; in ensureCapacity()
/external/icu/android_icu4j/src/main/java/android/icu/util/
DByteArrayWrapper.java112 byte[] newbytes = new byte[capacity]; in ensureCapacity()
114 copyBytes(bytes, 0, newbytes, 0, size); in ensureCapacity()
116 bytes = newbytes; in ensureCapacity()
/external/python/cpython2/Objects/
Dbytearrayobject.c2725 PyObject *newbytes; in bytearray_fromhex() local
2734 newbytes = PyByteArray_FromStringAndSize(NULL, byteslen); in bytearray_fromhex()
2735 if (!newbytes) in bytearray_fromhex()
2737 buf = PyByteArray_AS_STRING(newbytes); in bytearray_fromhex()
2754 if (PyByteArray_Resize(newbytes, j) < 0) in bytearray_fromhex()
2756 return newbytes; in bytearray_fromhex()
2759 Py_DECREF(newbytes); in bytearray_fromhex()
/external/python/cpython3/Modules/
Darraymodule.c887 Py_ssize_t oldbytes, newbytes; in array_repeat() local
900 newbytes = oldbytes * n; in array_repeat()
903 memset(np->ob_item, a->ob_item[0], newbytes); in array_repeat()
907 while (done < newbytes) { in array_repeat()
908 Py_ssize_t ncopy = (done <= newbytes-done) ? done : newbytes-done; in array_repeat()
/external/python/cpython2/Modules/
Darraymodule.c1231 size_t newbytes; in array_fromfile() local
1234 (newbytes = newlength * itemsize) / itemsize != in array_fromfile()
1237 PyMem_RESIZE(item, char, newbytes); in array_fromfile()