Add SenrenCxCrypt

This commit is contained in:
2026-04-08 15:32:11 +08:00
parent 36ee257776
commit a8ed40db2c
7 changed files with 417 additions and 52 deletions

View File

@@ -90,6 +90,18 @@ impl PartialEq<&[u8; 4]> for PropTag {
}
}
impl PartialEq<String> for PropTag {
fn eq(&self, other: &String) -> bool {
self.tag == other.as_bytes()
}
}
impl PartialEq<&str> for PropTag {
fn eq(&self, other: &&str) -> bool {
self.tag == other.as_bytes()
}
}
impl ExtraProp {
pub fn is_filename_hash(&self) -> bool {
self.tag == CHUNK_HNFN