Lines Matching refs:serializer
7 #include "dsync-serializer.h"
17 struct dsync_serializer *serializer;
23 struct dsync_serializer *serializer;
28 pool = pool_alloconly_create("dsync serializer", 512);
29 serializer = p_new(pool, struct dsync_serializer, 1);
30 serializer->pool = pool;
36 serializer->keys = dup_keys;
37 serializer->keys_count = count;
38 return serializer;
43 struct dsync_serializer *serializer = *_serializer;
47 pool_unref(&serializer->pool);
51 dsync_serializer_encode_header_line(struct dsync_serializer *serializer)
56 for (i = 0; serializer->keys[i] != NULL; i++) {
59 str_append_tabescaped(str, serializer->keys[i]);
66 dsync_serializer_encode_begin(struct dsync_serializer *serializer)
69 pool_t pool = pool_alloconly_create("dsync serializer encode", 1024);
73 encoder->serializer = serializer;
74 p_array_init(&encoder->values, pool, serializer->keys_count);
83 for (i = 0; encoder->serializer->keys[i] != NULL; i++) {
84 if (strcmp(encoder->serializer->keys[i], key) == 0) {