| 73 | return s; |
| 74 | } |
| 75 | static bool gd_zero(const cbm_store_graph_digest_t *v) { |
| 76 | if (v->version || v->rows || v->framed_bytes) return false; |
| 77 | for (size_t i=0;i<sizeof(v->sha256);i++) if (v->sha256[i]) return false; |
| 78 | return true; |
| 79 | } |
| 80 | static bool gd_equal(const cbm_store_graph_digest_t *a,const cbm_store_graph_digest_t *b) { |
| 81 | return a->version==b->version && a->rows==b->rows && a->framed_bytes==b->framed_bytes && |
| 82 | memcmp(a->sha256,b->sha256,sizeof(a->sha256))==0; |
no outgoing calls
no test coverage detected