Searched refs:oldBuffer (Results 1 - 8 of 8) sorted by relevance

/haiku/src/add-ons/media/media-add-ons/video_mixer/
H A DBufferMixer.cpp76 BBuffer *oldBuffer; local
79 oldBuffer = groupedBuffers[0];
82 oldBuffer = groupedBuffers[id];
86 if (oldBuffer != NULL) {
87 oldBuffer->Recycle();
93 BBuffer *oldBuffer; local
96 oldBuffer = groupedBuffers[id];
99 if (oldBuffer != NULL) {
100 oldBuffer->Recycle();
/haiku/src/system/runtime_loader/
H A Dheap.cpp377 realloc(void* oldBuffer, size_t newSize) argument
380 TRACE(("realloc(%p, %lu) -> NULL\n", oldBuffer, newSize));
381 free(oldBuffer);
388 if (oldBuffer != NULL) {
389 FreeChunk* oldChunk = FreeChunk::SetToAllocated(oldBuffer);
396 oldBuffer, newSize));
397 return oldBuffer;
405 if (oldBuffer != NULL) {
406 memcpy(newBuffer, oldBuffer, std::min(oldSize, newSize));
407 free(oldBuffer);
[all...]
/haiku/src/system/boot/loader/
H A Dheap.cpp505 realloc(void* oldBuffer, size_t newSize) argument
508 TRACE("realloc(%p, %lu) -> NULL\n", oldBuffer, newSize);
509 free(oldBuffer);
514 if (oldBuffer != NULL) {
515 if (oldBuffer >= sHeapBase && oldBuffer < sHeapEnd) {
516 FreeChunk* oldChunk = FreeChunk::SetToAllocated(oldBuffer);
519 LargeAllocation* allocation = sLargeAllocations.Lookup(oldBuffer);
521 panic("realloc(%p, %zu): unknown allocation!\n", oldBuffer,
532 oldBuffer, newSiz
[all...]
/haiku/src/kits/media/
H A DRealtimeAlloc.cpp425 void* oldBuffer = *_buffer; local
428 rtm_pool* pool = pool_for(oldBuffer);
430 void* buffer = realloc(oldBuffer, newSize);
441 TRACE("realloc(%p, %lu) -> NULL\n", oldBuffer, newSize);
442 pool->Free(oldBuffer);
448 if (oldBuffer != NULL) {
449 FreeChunk* oldChunk = FreeChunk::SetToAllocated(oldBuffer);
454 oldBuffer, newSize);
466 if (oldBuffer != NULL) {
467 memcpy(newBuffer, oldBuffer, copySiz
[all...]
/haiku/src/kits/app/
H A DLinkSender.cpp278 char *oldBuffer = NULL; local
279 status = AdjustBuffer(newBufferSize, &oldBuffer);
285 if (oldBuffer != fBuffer) {
286 memcpy(fBuffer, oldBuffer + start, fCurrentEnd);
287 free(oldBuffer);
/haiku/src/kits/media/experimental/
H A DAdapterIO.cpp49 status_t FlushBefore(off_t position, BPositionIO* buffer, const void* oldBuffer, argument
58 status_t status = buffer->WriteAt(0, (void*)((addr_t)oldBuffer + relative),
416 BMallocIO* oldBuffer = (BMallocIO*)fBuffer->Buffer(); local
417 fBuffer->FlushBefore(position, buffer, oldBuffer->Buffer(), oldBuffer->BufferLength());
/haiku/src/tests/system/boot/heap/
H A DheapTest.cpp17 extern "C" void* heap_realloc(void* oldBuffer, size_t size);
99 test_realloc(void* oldBuffer, size_t size) argument
101 return heap_realloc(oldBuffer, size);
/haiku/src/add-ons/kernel/file_systems/bfs/
H A DInode.cpp1101 uint8 oldBuffer[MAX_INDEX_KEY_LENGTH];
1136 memcpy(oldData = oldBuffer, smallData->Data(), oldLength);
1182 if (attribute->ReadAt(0, oldBuffer, &oldLength) == B_OK)
1183 oldData = oldBuffer;

Completed in 206 milliseconds