summaryrefslogtreecommitdiff
path: root/upb.h
diff options
context:
space:
mode:
Diffstat (limited to 'upb.h')
-rw-r--r--upb.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/upb.h b/upb.h
index ebf73c0..8c1af4f 100644
--- a/upb.h
+++ b/upb.h
@@ -54,6 +54,11 @@ INLINE void upb_strcpy(struct upb_string *dest, struct upb_string *src) {
dest->byte_len = src->byte_len;
}
+INLINE void upb_print(struct upb_string *str) {
+ fwrite(str->ptr, str->byte_len, 1, stdout);
+ fputc('\n', stdout);
+}
+
/* A list of types as they are encoded on-the-wire. */
enum upb_wire_type {
UPB_WIRE_TYPE_VARINT = 0,
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback