Lines Matching defs:sb
392 static int64_t write_catalog(const char *database, struct strbuf *sb,
433 k = fwrite(sb->buf, 1, sb->len, w);
434 if (k != sb->len) {
462 struct strbuf *sb = NULL;
474 sb = strbuf_new();
476 if (!h || !sb) {
514 offset = strbuf_add_string(sb, payload, strlen(payload));
526 strbuf_complete(sb);
528 sz = write_catalog(database, sb, items, n);
534 database, n, sb->len, sz);
538 strbuf_cleanup(sb);