···1use std::ffi::{c_char, c_uchar};
23/* A buffer that contains arbitrary byte slices. */
4-type ReftableBuf = Vec<c_char>;
56/*
7 * Hash functions understood by the reftable library. Note that the values are
8 * arbitrary and somewhat random such that we can easily detect cases where the
9 * hash hasn't been properly set up.
10 */
11-enum ReftableHash {
12 ReftableHashSha1 = 89,
13 ReftableHashSha256 = 247,
14}
···1use std::ffi::{c_char, c_uchar};
23/* A buffer that contains arbitrary byte slices. */
4+pub type ReftableBuf = Vec<c_char>;
56/*
7 * Hash functions understood by the reftable library. Note that the values are
8 * arbitrary and somewhat random such that we can easily detect cases where the
9 * hash hasn't been properly set up.
10 */
11+pub enum ReftableHash {
12 ReftableHashSha1 = 89,
13 ReftableHashSha256 = 247,
14}