Searched refs:length_to_send (Results 1 - 1 of 1) sorted by relevance

/system/bt/hci/test/
H A Dpacket_fragmenter_test.cpp141 int length_to_send = (length_sent + (acl_size - 4) < total_length) ? (acl_size - 4) : (total_length - length_sent); local
142 BT_HDR *packet = (BT_HDR *)osi_malloc(length_to_send + 4 + sizeof(BT_HDR));
143 packet->len = length_to_send + 4;
151 UINT16_TO_STREAM(packet_data, length_to_send);
153 memcpy(packet_data, data, length_to_send - 2);
156 UINT16_TO_STREAM(packet_data, length_to_send);
157 memcpy(packet_data, data + length_sent - 2, length_to_send);
160 length_sent += length_to_send;

Completed in 136 milliseconds