Searched refs:allocSize (Results 1 – 2 of 2) sorted by relevance
66 size_t allocSize = (m_bufsize < minSize ? minSize : m_bufsize); in allocBuffer() local68 m_buf = (unsigned char *)malloc(allocSize); in allocBuffer()70 else if (m_bufsize < allocSize) { in allocBuffer()71 unsigned char *p = (unsigned char *)realloc(m_buf, allocSize); in allocBuffer()74 m_bufsize = allocSize; in allocBuffer()76 ERR("%s: realloc (%zu) failed\n", __FUNCTION__, allocSize); in allocBuffer()
61 size_t allocSize = (m_bufsize < minSize ? minSize : m_bufsize); in allocBuffer() local63 m_buf = (unsigned char *)malloc(allocSize); in allocBuffer()65 else if (m_bufsize < allocSize) { in allocBuffer()66 unsigned char *p = (unsigned char *)realloc(m_buf, allocSize); in allocBuffer()69 m_bufsize = allocSize; in allocBuffer()71 ERR("realloc (%d) failed\n", allocSize); in allocBuffer()