summaryrefslogtreecommitdiff
path: root/upb_struct.h
diff options
context:
space:
mode:
authorJoshua Haberman <joshua@reverberate.org>2009-06-21 17:58:23 -0700
committerJoshua Haberman <joshua@reverberate.org>2009-06-21 17:58:23 -0700
commit0124bfd8fe87cb38fe367478d18f449edce8a0ae (patch)
tree431eaaa412d8bdab1afdc84d32ff8375d851c08c /upb_struct.h
parent9c21992286a5b6a3559f0ae9e191b417a8e4c06c (diff)
More work on inttable/strtable (not finished).
Diffstat (limited to 'upb_struct.h')
-rw-r--r--upb_struct.h12
1 files changed, 3 insertions, 9 deletions
diff --git a/upb_struct.h b/upb_struct.h
index d46b007..72a1d21 100644
--- a/upb_struct.h
+++ b/upb_struct.h
@@ -67,29 +67,23 @@ struct upb_struct_field *upb_struct_find_field_by_number(
/* Variable-length data (strings and arrays).**********************************/
-/* Represents a string or bytes. */
-struct upb_string {
- size_t byte_len;
- void *data;
-};
-
/* Represents an array (a repeated field) of any type. The interpretation of
* the data in the array depends on the type. */
struct upb_array {
- size_t len; /* Measured in elements. */
void *data; /* Size of individual elements is based on type. */
+ uint32_t len; /* Measured in elements. */
};
/* A generic array of structs, using void* instead of specific types. */
struct upb_struct_array {
- size_t len;
void **elements;
+ uint32_t len;
};
/* An array of strings. */
struct upb_string_array {
- size_t len;
struct upb_string **elements;
+ uint32_t len;
};
/* Specific arrays of all the primitive types. */
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback