Home
last modified time | relevance | path

Searched refs:logic_copy (Results 1 – 1 of 1) sorted by relevance

/dports/devel/libsigrok/libsigrok-0.5.2/src/
H A Dsession.c1495 struct sr_datafeed_logic *logic_copy; in sr_packet_copy() local
1521 logic_copy = g_malloc(sizeof(*logic_copy)); in sr_packet_copy()
1522 if (!logic_copy) in sr_packet_copy()
1524 logic_copy->length = logic->length; in sr_packet_copy()
1525 logic_copy->unitsize = logic->unitsize; in sr_packet_copy()
1526 logic_copy->data = g_malloc(logic->length * logic->unitsize); in sr_packet_copy()
1527 if (!logic_copy->data) { in sr_packet_copy()
1528 g_free(logic_copy); in sr_packet_copy()
1531 memcpy(logic_copy->data, logic->data, logic->length * logic->unitsize); in sr_packet_copy()
1532 (*copy)->payload = logic_copy; in sr_packet_copy()