X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libmemcached%2Fstring.h;h=39a8677364b92f530b071e2e9bacd0c3eeb5e7dd;hb=f1563c45b37bba7d51228af44dc184a9d0308e81;hp=9a9872645110ecb6112441eaa7b0b3a6a31f914a;hpb=c67da677fe0944d3d2d3ff46e65fc3bc775404ae;p=awesomized%2Flibmemcached diff --git a/libmemcached/string.h b/libmemcached/string.h index 9a987264..39a86773 100644 --- a/libmemcached/string.h +++ b/libmemcached/string.h @@ -16,12 +16,21 @@ extern "C" { #endif +/** + Strings are always under our control so we make some assumptions + about them. + + 1) is_initialized is always valid. + 2) A string once intialized will always be, until free where we + unset this flag. + 3) A string always has a root. +*/ + struct memcached_string_st { memcached_st *root; char *end; char *string; size_t current_size; - size_t block_size; struct { bool is_allocated:1; bool is_initialized:1;