void vnc_write(VncState *vs, const void *data, size_t len)

{

    buffer_reserve(&vs->output, len);



    if (buffer_empty(&vs->output)) {

        qemu_set_fd_handler2(vs->csock, NULL, vnc_client_read, vnc_client_write, vs);

    }



    buffer_append(&vs->output, data, len);

}

void vnc_write(VncState *vs, const void *data, size_t len)

{

    buffer_reserve(&vs->output, len);



    if (buffer_empty(&vs->output)) {

        qemu_set_fd_handler2(vs->csock, NULL, vnc_client_read, vnc_client_write, vs);

    }



    buffer_append(&vs->output, data, len);

}

    if (buffer_empty(&vs->output)) {
void FUNC_0(VncState *VAR_0, const void *VAR_1, size_t VAR_2)

{

    buffer_reserve(&VAR_0->output, VAR_2);



    if (buffer_empty(&VAR_0->output)) {

        qemu_set_fd_handler2(VAR_0->csock, NULL, vnc_client_read, vnc_client_write, VAR_0);

    }



    buffer_append(&VAR_0->output, VAR_1, VAR_2);

}

void FUNC_0(VncState *VAR_0, const void *VAR_1, size_t VAR_2)
{ buffer_reserve(&VAR_0->output, VAR_2); if (buffer_empty(&VAR_0->output)) { qemu_set_fd_handler2(VAR_0->csock, NULL, vnc_client_read, vnc_client_write, VAR_0); } buffer_append(&VAR_0->output, VAR_1, VAR_2); }