if (t->pf(*db)) { result = calloc(sizeof(struct DataBlock), 1); *result = t->tf(*db); assert(result->size > 0); assert(result->ptr != NULL); }
if (t->pf(db)) {  result = t->tf(db); assert(datablockSize(result) > 0); assert(datablockData(result) != NULL); }
struct DataBlock *testCompression(struct DataBlock *db, struct TransformAdaptor *t) {  struct DataBlock *result = db;  if (!t) return result;  if (t->pf(*db)) {    result = calloc(sizeof(struct DataBlock), 1);    *result = t->tf(*db);    assert(result->size > 0);    assert(result->ptr != NULL);  } /* TODO: consider fixing the memory leak pattern here with incoming db */  return result;}