aboutsummaryrefslogtreecommitdiff
path: root/c/blake3_impl.h
diff options
context:
space:
mode:
authorJosh Triplett <[email protected]>2025-11-17 15:03:12 -0800
committerJack O'Connor <[email protected]>2025-11-24 12:44:37 -0800
commit308b95dfa15d5a0aa8cb3c5534ffd90d76122c46 (patch)
tree79a01d4e01b3700167ba22d888fed42ec936bf8a /c/blake3_impl.h
parenteae9bf376a1c4797df7be6e49e735c0a5d91dcb0 (diff)
Add `Hash::as_slice()` for convenient serialization to bytes
`Hash::as_bytes()` returns the hash as an array of bytes. However, sometimes it's useful to have the hash as a slice of bytes instead, such as for serialization via an API that takes `&[u8]`. While `.as_bytes().as_slice()` works for this, it'd be more convenient to have a direct `.as_slice()` on hashes.
Diffstat (limited to 'c/blake3_impl.h')
0 files changed, 0 insertions, 0 deletions