Lines Matching defs:data
252 const char *data;
256 UPB_INLINE upb_strview upb_strview_make(const char *data, size_t size) {
258 ret.data = data;
263 UPB_INLINE upb_strview upb_strview_makez(const char *data) {
264 return upb_strview_make(data, strlen(data));
268 return a.size == b.size && memcmp(a.data, b.data, a.size) == 0;
274 #define UPB_STRVIEW_ARGS(view) (int)(view).size, (view).data
870 * is iterating over has not been freed. Calling next() or accessing data from
984 * compatibility. We put these before the user's data. The user's upb_msg*
1006 /* Adds unknown data (serialized protobuf data) to the given message. The data
1008 bool _upb_msg_addunknown(upb_msg *msg, const char *data, size_t len,
1011 /* Returns a reference to the message's unknown data. */
1042 uintptr_t data; /* Tagged ptr: low 3 bits of ptr are lg2(elem size). */
1048 return (void*)(arr->data & ~(uintptr_t)7);
1173 memcpy(out, key.data, size);
1209 bool ret = upb_strtable_lookup2(&map->table, k.data, k.size, &tabval);
1233 upb_strtable_remove3(&map->table, strkey.data, strkey.size, NULL, a);
1234 return upb_strtable_insert3(&map->table, strkey.data, strkey.size, tabval, a);
1239 return upb_strtable_remove3(&map->table, k.data, k.size, NULL, NULL);
1297 k.data = upb_tabstr(ent->key, &u32len);
3473 /* Adds unknown data (serialized protobuf data) to the given message. The data
3475 void upb_msg_addunknown(upb_msg *msg, const char *data, size_t len,
3478 /* Returns a reference to the message's unknown data. */
3557 ** parsing or visiting a stream of data. This is similar to how handlers work
3560 ** The handlers have no idea where the data is coming from, so a single set of
3561 ** handlers could be used with two completely different data sources (for
3655 /* Bufhandle, data passed along with a buffer to indicate its provenance. */
3658 * passed to a StringBuf handler because the handler may receive data
3802 * // Handler that doesn't need any data bound to it.
3836 /* Handler: a struct that contains the (handler, data, deleter) tuple that is
3955 * // whatever data was bound to this field when it was registered.
4033 * // Called for each buffer of string data; the multiple physical buffers
4248 * They write scalar data to a known offset from the message pointer.
4254 /* Sets a handler for the given primitive field that will write the data at the
4440 * These functions are not bound to a handler data so have no data or cleanup
4496 explicit BoundFunc(MutableP2 data_) : data(data_) {}
4498 MutableP2 GetData() { return data; }
4499 MutableP2 data;
4951 /* Function that discards the handler data parameter. */
4985 /* Function that casts the handler data parameter. */
5010 /* For unbound functions, ignore the handler data. */
5024 /* For StringBuffer only; this ignores both the handler data and the
5040 /* For bound functions, cast the handler data. */
5204 ** state. It is the object that can actually receive data via the upb_handlers
5400 * state. It represents an endpoint to which data can be sent.
5474 /* Functions for pushing data into the sink.
5527 * non-contiguous buffers of data.
5582 * functions need them and this is mainly just a dumb data container anyway.
5705 return upb_bufsrc_putbuf(str.data(), str.size(), sink.sink());
5834 /* A Decoder receives binary protobuf data on its input sink and pushes the
5835 * decoded data to its output sink. */
5893 /* Lazily builds and caches decoder methods that will push data to the given
5942 * them? The caller should set this iff the lazy handlers expect data that is
5946 /* Returns a DecoderMethod that can push data to the given handlers.
6137 /* Bytes of data that should be discarded from the input beore we start
6398 ** Implements a set of upb_handlers that write protobuf data to the binary wire
6439 /* Lazily builds and caches handlers that will push encoded data to a bytessink.
6649 /* Lazily builds and caches decoder methods that will push data to the given
6671 /* Returns a DecoderMethod that can push data to the given handlers.
6721 /* Lazily builds and caches handlers that will push encoded data to a bytessink.
6728 /* Prints an incoming stream of data to a BytesSink in JSON format. */