static void receive_from_chr_layer(SCLPConsole *scon, const uint8_t *buf,

                                   int size)

{

    /* read data must fit into current buffer */

    assert(size <= SIZE_BUFFER_VT220 - scon->iov_data_len);



    /* put byte-stream from character layer into buffer */

    memcpy(&scon->iov[scon->iov_bs], buf, size);

    scon->iov_data_len += size;

    scon->iov_sclp_rest += size;

    scon->iov_bs += size;

    scon->event.event_pending = true;

}

static void receive_from_chr_layer(SCLPConsole *scon, const uint8_t *buf,

                                   int size)

{

    

    assert(size <= SIZE_BUFFER_VT220 - scon->iov_data_len);



    

    memcpy(&scon->iov[scon->iov_bs], buf, size);

    scon->iov_data_len += size;

    scon->iov_sclp_rest += size;

    scon->iov_bs += size;

    scon->event.event_pending = true;

}

static void receive_from_chr_layer(SCLPConsole *scon, const uint8_t *buf,                                    int size)
static void FUNC_0(SCLPConsole *VAR_0, const uint8_t *VAR_1,

                                   int VAR_2)

{

    

    assert(VAR_2 <= SIZE_BUFFER_VT220 - VAR_0->iov_data_len);



    

    memcpy(&VAR_0->iov[VAR_0->iov_bs], VAR_1, VAR_2);

    VAR_0->iov_data_len += VAR_2;

    VAR_0->iov_sclp_rest += VAR_2;

    VAR_0->iov_bs += VAR_2;

    VAR_0->event.event_pending = true;

}

static void FUNC_0(SCLPConsole *VAR_0, const uint8_t *VAR_1,
int VAR_2)
{ assert(VAR_2 <= SIZE_BUFFER_VT220 - VAR_0->iov_data_len); memcpy(&VAR_0->iov[VAR_0->iov_bs], VAR_1, VAR_2); VAR_0->iov_data_len += VAR_2; VAR_0->iov_sclp_rest += VAR_2; VAR_0->iov_bs += VAR_2; VAR_0->event.event_pending = true; }