Slice as_slice(const UInt<N> &)
GitOrigin-RevId: f934016e24074f6d57dfe4bb95f649f2e5a18eed
This commit is contained in:
parent
597db4b4ce
commit
4f01ee03f7
@ -272,4 +272,13 @@ inline std::size_t SliceHash::operator()(Slice slice) const {
|
||||
return result;
|
||||
}
|
||||
|
||||
template <size_t N>
|
||||
td::Slice as_slice(const td::UInt<N> &value) {
|
||||
return td::Slice(value.raw, N / 8);
|
||||
}
|
||||
template <size_t N>
|
||||
td::MutableSlice as_slice(td::UInt<N> &value) {
|
||||
return td::MutableSlice(value.raw, N / 8);
|
||||
}
|
||||
|
||||
} // namespace td
|
||||
|
Loading…
x
Reference in New Issue
Block a user