mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-07-10 18:48:13 -07:00
global: snapshot
This commit is contained in:
@@ -4,9 +4,15 @@ use derive_more::Deref;
|
||||
|
||||
pub const XOR_LEN: usize = 8;
|
||||
|
||||
#[derive(Debug, Clone, Copy, Deref)]
|
||||
#[derive(Debug, Clone, Copy, Deref, PartialEq, Eq)]
|
||||
pub struct XORBytes([u8; XOR_LEN]);
|
||||
|
||||
impl From<[u8; XOR_LEN]> for XORBytes {
|
||||
fn from(value: [u8; XOR_LEN]) -> Self {
|
||||
Self(value)
|
||||
}
|
||||
}
|
||||
|
||||
impl From<&Path> for XORBytes {
|
||||
#[inline]
|
||||
fn from(value: &Path) -> Self {
|
||||
|
||||
Reference in New Issue
Block a user