Searched refs:sbuf (Results 1 – 1 of 1) sorted by relevance
/system/core/adb/ |
D | file_sync_client.cpp | 227 static int write_data_file(int fd, const char *path, syncsendbuf *sbuf, int show_progress) in write_data_file() argument 249 sbuf->id = ID_DATA; in write_data_file() 253 ret = adb_read(lfd, sbuf->data, SYNC_DATA_MAX); in write_data_file() 264 sbuf->size = htoll(ret); in write_data_file() 265 if(!WriteFdExactly(fd, sbuf, sizeof(unsigned) * 2 + ret)){ in write_data_file() 280 static int write_data_buffer(int fd, char* file_buffer, int size, syncsendbuf *sbuf, in write_data_buffer() argument 286 sbuf->id = ID_DATA; in write_data_buffer() 293 memcpy(sbuf->data, &file_buffer[total], count); in write_data_buffer() 294 sbuf->size = htoll(count); in write_data_buffer() 295 if(!WriteFdExactly(fd, sbuf, sizeof(unsigned) * 2 + count)){ in write_data_buffer() [all …]
|