MCPcopy Create free account
hub / github.com/LibRaw/LibRaw / malloc_omp_buffers

Method malloc_omp_buffers

src/utils/utils_libraw.cpp:644–653  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

642}
643
644char** LibRaw::malloc_omp_buffers(int buffer_count, size_t buffer_size)
645{
646 char** buffers = (char**)calloc(sizeof(char*), buffer_count);
647
648 for (int i = 0; i < buffer_count; i++)
649 {
650 buffers[i] = (char*)calloc(buffer_size,1);
651 }
652 return buffers;
653}
654
655void LibRaw::free_omp_buffers(char** buffers, int buffer_count)
656{

Callers

nothing calls this directly

Calls 1

callocFunction · 0.85

Tested by

no test coverage detected