Sha256: 3ed0e7518cd2c604f2631f38ba8d3119daaeeb3c5b39cb6db968ca54032d7541

Contents?: true

Size: 1.39 KB

Versions: 133

Compression:

Stored size: 1.39 KB

Contents

/* pb_common.h: Common support functions for pb_encode.c and pb_decode.c.
 * These functions are rarely needed by applications directly.
 */

#ifndef PB_COMMON_H_INCLUDED
#define PB_COMMON_H_INCLUDED

#include "pb.h"

#ifdef __cplusplus
extern "C" {
#endif

/* Iterator for pb_field_t list */
struct pb_field_iter_s {
    const pb_field_t *start;       /* Start of the pb_field_t array */
    const pb_field_t *pos;         /* Current position of the iterator */
    unsigned required_field_index; /* Zero-based index that counts only the required fields */
    void *dest_struct;             /* Pointer to start of the structure */
    void *pData;                   /* Pointer to current field value */
    void *pSize;                   /* Pointer to count/has field */
};
typedef struct pb_field_iter_s pb_field_iter_t;

/* Initialize the field iterator structure to beginning.
 * Returns false if the message type is empty. */
bool pb_field_iter_begin(pb_field_iter_t *iter, const pb_field_t *fields, void *dest_struct);

/* Advance the iterator to the next field.
 * Returns false when the iterator wraps back to the first field. */
bool pb_field_iter_next(pb_field_iter_t *iter);

/* Advance the iterator until it points at a field with the given tag.
 * Returns false if no such field exists. */
bool pb_field_iter_find(pb_field_iter_t *iter, uint32_t tag);

#ifdef __cplusplus
} /* extern "C" */
#endif

#endif

Version data entries

133 entries across 133 versions & 6 rubygems

Version Path
cocoapods-catalyst-validator-0.1.0.beta.1 examples/AExample/Pods/nanopb/pb_common.h
grpc-1.23.1 third_party/nanopb/pb_common.h
grpc-1.23.0 third_party/nanopb/pb_common.h
grpc-1.22.1 third_party/nanopb/pb_common.h
grpc-1.23.0.pre1 third_party/nanopb/pb_common.h
grpc-1.22.0 third_party/nanopb/pb_common.h
grpc-1.22.0.pre1 third_party/nanopb/pb_common.h
grpc-1.21.0 third_party/nanopb/pb_common.h
grpc-1.20.0 third_party/nanopb/pb_common.h
grpc-1.20.0.pre1 third_party/nanopb/pb_common.h
grpc-1.19.0 third_party/nanopb/pb_common.h
grpc-1.19.0.pre1 third_party/nanopb/pb_common.h
grpc-1.18.0 third_party/nanopb/pb_common.h
grpc-1.18.0.pre1 third_party/nanopb/pb_common.h
grpc-1.17.1 third_party/nanopb/pb_common.h
grpc-1.17.0 third_party/nanopb/pb_common.h
grpc-1.17.0.pre1 third_party/nanopb/pb_common.h
grpc-1.16.0 third_party/nanopb/pb_common.h
grpc-z-1.11.1 third_party/nanopb/pb_common.h
grpc-flamingo-1.15.0 third_party/nanopb/pb_common.h