11 bool falsebool =
false;
17 assert(count <= iter->array_size);
22 assert(
memcmp(iter->pSize, &truebool,
sizeof(
bool)) == 0 ||
23 memcmp(iter->pSize, &falsebool,
sizeof(
bool)) == 0);
27 if (*(
pb_size_t*)iter->pSize != iter->tag)
34 for (i = 0; i < count; i++)
36 void *pData = (
char*)iter->pData + iter->data_size * i;
41 assert(
strlen(pData) + 1 <= iter->data_size);
46 pb_bytes_array_t *bytes = pData;
52 assert(
memcmp(pData, &truebool,
sizeof(
bool)) == 0 ||
53 memcmp(pData, &falsebool,
sizeof(
bool)) == 0);
67 bool falsebool =
false;
71 if (*(
pb_size_t*)iter->pSize != iter->tag)
77 else if (!iter->pData)
92 assert(allocated_size >= count * iter->data_size);
97 assert(allocated_size >= iter->data_size);
100 for (i = 0; i < count; i++)
102 void *pData = (
char*)iter->pData + iter->data_size * i;
108 const char *str = pData;
113 str = ((
const char**)iter->pData)[i];
121 const pb_bytes_array_t *bytes = pData;
126 bytes = ((
const pb_bytes_array_t**)iter->pData)[i];
134 assert(
memcmp(pData, &truebool,
sizeof(
bool)) == 0 ||
135 memcmp(pData, &falsebool,
sizeof(
bool)) == 0);
146 pb_field_iter_t iter;
MOSAPI int memcmp(const void *s1, const void *s2, size_t n)
size_t get_allocation_size(const void *mem)
#define PB_BYTES_ARRAY_T_ALLOCSIZE(n)
#define PB_HTYPE_OPTIONAL
#define PB_HTYPE_REPEATED
#define PB_LTYPE_IS_SUBMSG(x)
bool pb_field_iter_next(pb_field_iter_t *iter)
bool pb_field_iter_begin_const(pb_field_iter_t *iter, const pb_msgdesc_t *desc, const void *message)
static size_t strlen(const char *s)
void validate_pointer(pb_field_iter_t *iter)
void validate_static(pb_field_iter_t *iter)
void validate_message(const void *msg, size_t structsize, const pb_msgdesc_t *msgtype)