Searched refs:initsz (Results 1 – 2 of 2) sorted by relevance
47 mbfl_memory_device_init(mbfl_memory_device *device, int initsz, int allocsz) in mbfl_memory_device_init() argument52 if (initsz > 0) { in mbfl_memory_device_init()53 device->buffer = (unsigned char *)mbfl_malloc(initsz*sizeof(unsigned char)); in mbfl_memory_device_init()55 device->length = initsz; in mbfl_memory_device_init()68 mbfl_memory_device_realloc(mbfl_memory_device *device, int initsz, int allocsz) in mbfl_memory_device_realloc() argument73 if (initsz > device->length) { in mbfl_memory_device_realloc()74 tmp = (unsigned char *)mbfl_realloc((void *)device->buffer, initsz*sizeof(unsigned char)); in mbfl_memory_device_realloc()77 device->length = initsz; in mbfl_memory_device_realloc()
53 MBFLAPI extern void mbfl_memory_device_init(mbfl_memory_device *device, int initsz, int allocsz);54 MBFLAPI extern void mbfl_memory_device_realloc(mbfl_memory_device *device, int initsz, int allocsz);
Completed in 7 milliseconds