Lines Matching refs:char_rbuffer
46 if (io->char_rbuffer) { in ifapi_io_read_async()
68 io->char_rbuffer = malloc (length + 1); in ifapi_io_read_async()
69 if (io->char_rbuffer == NULL) { in ifapi_io_read_async()
85 io->char_rbuffer[length] = '\0'; in ifapi_io_read_async()
115 &io->char_rbuffer[io->buffer_idx], in ifapi_io_read_finish()
124 SAFE_FREE(io->char_rbuffer); in ifapi_io_read_finish()
139 *buffer = (uint8_t *)io->char_rbuffer; in ifapi_io_read_finish()
140 io->char_rbuffer = NULL; in ifapi_io_read_finish()
165 if (io->char_rbuffer) { in ifapi_io_write_async()
172 io->char_rbuffer = malloc(length); in ifapi_io_write_async()
173 if (io->char_rbuffer == NULL) { in ifapi_io_write_async()
177 memcpy(io->char_rbuffer, buffer, length); in ifapi_io_write_async()
181 SAFE_FREE(io->char_rbuffer); in ifapi_io_write_async()
223 &io->char_rbuffer[io->buffer_idx], in ifapi_io_write_finish()
232 SAFE_FREE(io->char_rbuffer); in ifapi_io_write_finish()
241 SAFE_FREE(io->char_rbuffer); in ifapi_io_write_finish()