Lines Matching refs:size
289 size_t size;
299 /* coap_get_data() sets size to 0 on error */
300 (void)coap_get_data(request, &size, &data);
306 } else if (code == COAP_REQUEST_CODE_FETCH && size == ticks->length &&
339 size_t size;
353 /* coap_get_data() sets size to 0 on error */
354 (void)coap_get_data(request, &size, &data);
356 if (size == 0) { /* re-init */
361 while (size--)
403 size_t size;
420 for (size = query->length; size; --size, ++p) {
512 size_t size;
520 if (coap_get_data_large(request, &size, &data, &offset, &total) &&
521 size != total) {
528 * estimate the client has of the total size of the resource
529 * representation, measured in bytes ("size indication").
567 if (size) {
570 data_so_far = coap_block_build_body(data_so_far, size, data,
575 if (offset + size == total) {
586 data_so_far = coap_new_binary(size);
588 memcpy(data_so_far->s, data, size);
992 size_t size;
1064 if (coap_get_data_large(request, &size, &data, &offset, &total)) {
1066 assert(size == total);
1072 memcpy(body_data->s, data, size);
1152 if (size) {
1153 if (!coap_add_data_large_request(ongoing, pdu, size, data,
1296 size_t size;
1369 if (coap_get_data_large(request, &size, &data, &offset, &total) &&
1370 size != total) {
1377 * estimate the client has of the total size of the resource
1378 * representation, measured in bytes ("size indication").
1411 if (size) {
1415 data_so_far = coap_new_binary(size);
1417 memcpy(data_so_far->s, data, size);
1420 coap_binary_t *new = coap_resize_binary(data_so_far, offset + size);
1424 memcpy(&data_so_far->s[offset], data, size);
1434 if (offset + size == total) {
1444 data_so_far = coap_new_binary(size);
1445 if (data_so_far && size) {
1446 memcpy(data_so_far->s, data, size);
1604 size_t size;
1636 if (coap_get_data_large(received, &size, &data, &offset, &total)) {
1638 assert(size == total);
1644 memcpy(body_data->s, data, size);
1698 if (size > 0) {
1705 media_type, maxage, etag, size, data,
2139 "\t\t[-T max_token_size] [-U type] [-V num] [-X size]\n"
2206 "\t-X size\t\tMaximum message size to use for TCP based connections\n"
2396 /* len is the size or less, so 0 terminate to maxlen */