HomeSort by relevance Sort by last modified time
    Searched full:newsize (Results 1 - 25 of 563) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/icu/icu4c/source/tools/tzcode/
ialloc.c 14 register int oldsize, newsize; local
16 newsize = (new == NULL) ? 0 : strlen(new);
19 else if (newsize == 0)
22 if ((result = realloc(old, oldsize + newsize + 1)) != NULL)
  /external/icu/icu4c/source/samples/layout/
arraymem.h 20 #define GROW_ARRAY(array,newSize) realloc((void *) (array), (newSize) * sizeof (array)[0])
FontTableCache.cpp 75 le_int32 newSize = fTableCacheSize + TABLE_CACHE_GROW;
77 fTableCache = (FontTableCacheEntry *) LE_GROW_ARRAY(fTableCache, newSize);
79 for (le_int32 i = fTableCacheSize; i < newSize; i += 1) {
84 fTableCacheSize = newSize;
  /external/lzma/C/
7zBuf2.c 26 size_t newSize = p->pos + size;
28 newSize += newSize / 4;
29 data = (Byte *)alloc->Alloc(alloc, newSize);
32 p->size = newSize;
  /external/lzma/CPP/Common/
MyBuffer.h 71 void ChangeSize_KeepData(size_t newSize, size_t keepSize)
73 if (newSize == _size)
76 if (newSize > 0)
78 newBuffer = new T[newSize];
80 memcpy(newBuffer, _items, MyMin(MyMin(_size, keepSize), newSize) * sizeof(T));
84 _size = newSize;
140 void Alloc(size_t newSize)
144 _items = new T[newSize];
174 size_t newSize = buffer._size;
175 if (newSize > 0)
    [all...]
  /frameworks/base/media/mca/filterfw/native/core/
native_frame.cpp 52 bool NativeFrame::Resize(int newSize) {
53 if (newSize <= capacity_ && newSize >= 0) {
54 size_ = newSize;
  /external/llvm/lib/Fuzzer/test/
FuzzerUnittest.cpp 58 size_t NewSize = MD.CrossOver(A.data(), A.size(), B.data(), B.size(),
60 C.resize(NewSize);
95 size_t NewSize = (MD.*M)(T, sizeof(T), sizeof(T));
96 if (NewSize == 7 && !memcmp(REM0, T, 7)) FoundMask |= 1 << 0;
97 if (NewSize == 7 && !memcmp(REM1, T, 7)) FoundMask |= 1 << 1;
98 if (NewSize == 7 && !memcmp(REM2, T, 7)) FoundMask |= 1 << 2;
99 if (NewSize == 7 && !memcmp(REM3, T, 7)) FoundMask |= 1 << 3;
100 if (NewSize == 7 && !memcmp(REM4, T, 7)) FoundMask |= 1 << 4;
101 if (NewSize == 7 && !memcmp(REM5, T, 7)) FoundMask |= 1 << 5;
102 if (NewSize == 7 && !memcmp(REM6, T, 7)) FoundMask |= 1 << 6
    [all...]
  /system/core/libutils/
SharedBuffer.cpp 65 SharedBuffer* SharedBuffer::editResize(size_t newSize) const
69 if (buf->mSize == newSize) return buf;
72 LOG_ALWAYS_FATAL_IF((newSize >= (SIZE_MAX - sizeof(SharedBuffer))),
73 "Invalid buffer size %zu", newSize);
75 buf = (SharedBuffer*)realloc(buf, sizeof(SharedBuffer) + newSize);
77 buf->mSize = newSize;
81 SharedBuffer* sb = alloc(newSize);
84 memcpy(sb->data(), data(), newSize < mySize ? newSize : mySize);
  /external/icu/icu4c/source/test/letest/
letest.h 38 #define GROW_ARRAY(array,newSize) realloc((void *) (array), (newSize) * sizeof (array)[0])
FontTableCache.cpp 79 le_int32 newSize = fTableCacheSize + TABLE_CACHE_GROW;
81 fTableCache = (FontTableCacheEntry *) LE_GROW_ARRAY(fTableCache, newSize);
83 for (le_int32 i = fTableCacheSize; i < newSize; i += 1) {
89 fTableCacheSize = newSize;
  /external/lzma/CPP/7zip/Common/
OffsetStream.cpp 36 STDMETHODIMP COffsetOutStream::SetSize(UInt64 newSize)
38 return _stream->SetSize(_offset + newSize);
OffsetStream.h 23 STDMETHOD(SetSize)(UInt64 newSize);
  /libcore/ojluni/src/main/java/sun/nio/ch/
PollArrayWrapper.java 51 PollArrayWrapper(int newSize) {
52 newSize = (newSize + 1) * SIZE_POLLFD;
53 pollArray = new AllocatedNativeObject(newSize, false);
97 * Grows the pollfd array to a size that will accommodate newSize
98 * pollfd entries. This method does no checking of the newSize
102 void grow(int newSize) {
104 PollArrayWrapper temp = new PollArrayWrapper(newSize);
  /prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/include/ddk/
msports.h 12 /* Limits for ComDBResizeDatabase NewSize */
56 IN DWORD NewSize);
  /external/icu/icu4c/source/test/perf/leperf/
FontTableCache.cpp 79 le_int32 newSize = fTableCacheSize + TABLE_CACHE_GROW;
81 fTableCache = (FontTableCacheEntry *) LE_GROW_ARRAY(fTableCache, newSize);
83 for (le_int32 i = fTableCacheSize; i < newSize; i += 1) {
89 fTableCacheSize = newSize;
  /external/icu/android_icu4j/src/main/java/android/icu/impl/
CalendarCache.java 23 private void makeArrays(int newSize) {
24 keys = new long[newSize];
25 values = new long[newSize];
27 for (int i = 0; i < newSize; i++) {
30 arraySize = newSize;
  /external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
CalendarCache.java 21 private void makeArrays(int newSize) {
22 keys = new long[newSize];
23 values = new long[newSize];
25 for (int i = 0; i < newSize; i++) {
28 arraySize = newSize;
  /external/bsdiff/
bsdiff.cc 54 off_t newsize) {
57 for(i=0;(i<oldsize)&&(i<newsize);i++)
64 u_char *new_buf,off_t newsize,off_t st,off_t en,off_t *pos)
69 x=matchlen(old+I[st],oldsize-I[st],new_buf,newsize);
70 y=matchlen(old+I[en],oldsize-I[en],new_buf,newsize);
82 if(memcmp(old+I[x],new_buf,std::min(oldsize-I[x],newsize))<=0) {
83 return search(I,old,oldsize,new_buf,newsize,x,en,pos);
85 return search(I,old,oldsize,new_buf,newsize,st,x,pos);
111 off_t oldsize,newsize; local
141 /* Allocate newsize+1 bytes instead of newsize bytes to ensur
    [all...]
  /external/dng_sdk/source/
dng_string_list.cpp 52 uint32 newSize = Max_uint32 (minSize, fAllocated * 2);
55 malloc (newSize * sizeof (dng_string *));
80 fAllocated = newSize;
  /external/deqp/framework/opengl/
gluObjectWrapper.cpp 101 void ObjectVector::resize (size_t newSize)
105 if (newSize == 0)
109 if (oldSize < newSize)
111 m_objects.resize(newSize, 0);
112 (m_gl.*m_traits.genFunc)(glw::GLsizei(newSize - oldSize), &m_objects[oldSize]);
114 else if (oldSize > newSize)
116 (m_gl.*m_traits.deleteFunc)(glw::GLsizei(oldSize - newSize), &m_objects[newSize]);
117 m_objects.resize(newSize);
  /external/icu/icu4c/source/common/
uvectr64.cpp 189 * Change the size of this vector as follows: If newSize is smaller,
191 * newSize. If newSize is larger, grow the array, filling in new
194 void UVector64::setSize(int32_t newSize) {
196 if (newSize < 0) {
199 if (newSize > count) {
201 if (!ensureCapacity(newSize, ec)) {
204 for (i=count; i<newSize; ++i) {
208 count = newSize;
  /external/sfntly/cpp/src/test/tinyxml/
tinystr.cpp 70 size_type newsize = length() + len; local
71 if (newsize > capacity())
73 reserve (newsize + capacity());
76 set_size(newsize);
  /external/tinyxml/
tinystr.cpp 74 size_type newsize = length() + len; local
75 if (newsize > capacity())
77 reserve (newsize + capacity());
80 set_size(newsize);
  /packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/
allocators.h 45 // \param newSize the new size in bytes.
46 void* Realloc(void* originalPtr, size_t originalSize, size_t newSize);
71 void* Realloc(void* originalPtr, size_t originalSize, size_t newSize) {
73 if (newSize == 0) {
77 return std::realloc(originalPtr, newSize);
190 void* Realloc(void* originalPtr, size_t originalSize, size_t newSize) {
192 return Malloc(newSize);
194 if (newSize == 0)
198 if (originalSize >= newSize)
203 size_t increment = static_cast<size_t>(newSize - originalSize);
    [all...]
  /bootable/recovery/applypatch/
bsdiff.cpp 159 static off_t matchlen(u_char *olddata,off_t oldsize,u_char *newdata,off_t newsize)
163 for(i=0;(i<oldsize)&&(i<newsize);i++)
170 u_char *newdata,off_t newsize,off_t st,off_t en,off_t *pos)
175 x=matchlen(old+I[st],oldsize-I[st],newdata,newsize);
176 y=matchlen(old+I[en],oldsize-I[en],newdata,newsize);
188 if(memcmp(old+I[x],newdata,MIN(oldsize-I[x],newsize))<0) {
189 return search(I,old,oldsize,newdata,newsize,x,en,pos);
191 return search(I,old,oldsize,newdata,newsize,st,x,pos);
215 // - old, oldsize, newdata, newsize are arguments; we don't load this
224 int bsdiff(u_char* old, off_t oldsize, off_t** IP, u_char* newdata, off_t newsize,
    [all...]

Completed in 471 milliseconds

1 2 3 4 5 6 7 8 91011>>