Lines Matching full:data_size
74 uint8_t *data = malloc(buf->data_size);
76 memcpy(data, buf->data, buf->data_size);
79 cstate->buf.data_size = buf->data_size;
80 cstate->buf.buf_size = buf->data_size;
108 int scanned, data_size = 0;
117 scanned = sdp_extract_seqtype(buf, len, &seqType, &data_size);
127 SDPDBG("Data size : %d", data_size);
225 if (seqlen == data_size)
227 else if (seqlen > data_size || seqlen > len)
244 uint8_t *pdata = buf->data + buf->data_size;
260 buf->data_size += length;
406 buf->data_size += sizeof(uint16_t);
412 buf->data_size += sizeof(uint16_t);
435 buf->data_size += handleSize;
446 buf->data_size -= handleSize;
501 buf->data_size += handleSize;
585 if (low == 0x0000 && high == 0xffff && pdu.data_size <= buf->buf_size) {
587 memcpy(buf->data, pdu.data, pdu.data_size);
588 buf->data_size = pdu.data_size;
704 short sent = MIN(max_rsp_size, pCache->data_size - cstate->cStateValue.maxBytesSent);
707 buf->data_size += sent;
711 pCache->data_size, sent, cstate->cStateValue.maxBytesSent);
712 if (cstate->cStateValue.maxBytesSent == pCache->data_size)
723 if (buf->data_size > max_rsp_size) {
732 SDPDBG("Creating continuation state of size : %d", buf->data_size);
733 buf->data_size = max_rsp_size;
737 if (buf->data_size == 0)
756 bt_put_unaligned(htons(buf->data_size - cstate_size), (uint16_t *)buf->data);
757 buf->data_size += sizeof(uint16_t);
839 tmpbuf.data_size = 0;
864 SDPDBG("Local PDU size : %d", tmpbuf.data_size);
869 if (buf->data_size + tmpbuf.data_size < buf->buf_size) {
871 sdp_append_to_buf(buf, tmpbuf.data, tmpbuf.data_size);
872 tmpbuf.data_size = 0;
878 SDPDBG("Net PDU size : %d", buf->data_size);
881 if (buf->data_size > max) {
890 buf->data_size = max;
899 uint16_t sent = MIN(max, pCache->data_size - cstate->cStateValue.maxBytesSent);
902 buf->data_size += sent;
904 if (cstate->cStateValue.maxBytesSent == pCache->data_size)
916 buf->data_size = 0;
917 sdp_append_to_buf(buf, tmpbuf.data, tmpbuf.data_size);
927 bt_put_unaligned(htons(buf->data_size - cstate_size), (uint16_t *)buf->data);
928 buf->data_size += sizeof(uint16_t);
959 rsp.data_size = 0;
1015 rsp.data_size = sizeof(uint16_t);
1021 rsphdr->plen = htons(rsp.data_size);
1024 rsp.data_size += sizeof(sdp_pdu_hdr_t);
1028 sent = send(req->sock, rsp.data, rsp.data_size, 0);