Home | History | Annotate | Download | only in nanopb-c

Lines Matching full:pdata

30     void *pData; /* Pointer where to store current field value */
346 iter->pData = (char*)dest_struct + iter->pos->data_offset;
347 iter->pSize = (char*)iter->pData + iter->pos->size_offset;
379 iter->pData = iter->dest_struct;
384 iter->pData = (char*)iter->pData + prev_size + iter->pos->data_offset;
385 iter->pSize = (char*)iter->pData + iter->pos->size_offset;
420 return func(stream, iter->pos, iter->pData);
424 return func(stream, iter->pos, iter->pData);
439 void *pItem = (uint8_t*)iter->pData + iter->pos->data_size * (*size);
458 void *pItem = (uint8_t*)iter->pData + iter->pos->data_size * (*size);
472 /* Allocate storage for the field and store the pointer at iter->pData.
474 static bool checkreturn allocate_field(pb_istream_t *stream, void *pData, size_t data_size, size_t array_size)
476 void *ptr = *(void**)pData;
486 *(void**)pData = ptr;
525 return func(stream, iter->pos, iter->pData);
529 if (!allocate_field(stream, iter->pData, iter->pos->data_size, 1))
532 initialize_pointer_field(*(void**)iter->pData, iter);
533 return func(stream, iter->pos, *(void**)iter->pData);
559 if (!allocate_field(&substream, iter->pData, iter->pos->data_size, allocated_size))
567 pItem = *(uint8_t**)iter->pData + iter->pos->data_size * (*size);
587 if (!allocate_field(stream, iter->pData, iter->pos->data_size, *size))
590 pItem = *(uint8_t**)iter->pData + iter->pos->data_size * (*size - 1);
603 pb_callback_t *pCallback = (pb_callback_t*)iter->pData;
682 iter.pData = extension->dest;
693 pb_extension_t *extension = *(pb_extension_t* const *)iter->pData;
762 pb_message_set_to_defaults((const pb_field_t *) iter.pos->ptr, iter.pData);
767 memcpy(iter.pData, iter.pos->ptr, iter.pos->data_size);
772 memset(iter.pData, 0, iter.pos->data_size);
778 *(void**)iter.pData = NULL;
942 void **pItem = *(void***)iter.pData;
953 void *pItem = *(void**)iter.pData;
969 pb_free(*(void**)iter.pData);
970 *(void**)iter.pData = NULL;