[utils] Using token offsets to calculate lengths for contiguous string arrays, inlining a few functions

This commit is contained in:
Al
2015-04-15 20:16:58 -04:00
parent 24e62b1c6c
commit e21873635c
2 changed files with 17 additions and 5 deletions

View File

@@ -98,6 +98,7 @@ uint32_t cstring_array_add_string(cstring_array *self, char *str);
uint32_t cstring_array_add_string_len(cstring_array *self, char *str, size_t len);
int32_t cstring_array_get_offset(cstring_array *self, uint32_t i);
char *cstring_array_get_token(cstring_array *self, uint32_t i);
int64_t cstring_array_token_length(cstring_array *self, uint32_t i);
void cstring_array_destroy(cstring_array *self);