core: Add API to convert checksum -> csum in place

We already have the opposite, and this will be used in some
places to avoid a malloc.

https://bugzilla.gnome.org/show_bug.cgi?id=706031
This commit is contained in:
Colin Walters committed 2013-08-14 19:49:54 -04:00
1 parent 76cd7ae4ea
commit d9f59c6fd5
2 files changed
+16 -5

No files matched your search

+3
View File
@@ -132,6 +132,9 @@ char * ostree_checksum_from_bytes_v (GVariant *bytes);
void ostree_checksum_inplace_from_bytes (const guchar *bytes,
char *buf);
void ostree_checksum_inplace_to_bytes (const char *checksum,
guchar *buf);
const guchar *ostree_checksum_bytes_peek (GVariant *bytes);
int ostree_cmp_checksum_bytes (const guchar *a, const guchar *b);