Lines Matching refs:size
30 int qemud_channel_send(int pipe, const void* msg, int size) { in qemud_channel_send() argument
33 if (size < 0) in qemud_channel_send()
34 size = strlen((const char*)msg); in qemud_channel_send()
36 if (size == 0) in qemud_channel_send()
39 snprintf(header, sizeof(header), "%04x", size); in qemud_channel_send()
44 if (qemu_pipe_write_fully(pipe, msg, size)) { in qemud_channel_send()
53 int size; in qemud_channel_recv() local
60 if (sscanf(header, "%04x", &size) != 1) { in qemud_channel_recv()
63 if (size > maxsize) { in qemud_channel_recv()
67 if (qemu_pipe_read_fully(pipe, msg, size)) { in qemud_channel_recv()
71 return size; in qemud_channel_recv()