struct ChainReactionCryptBase {
encryption_threshold_map: Mutex<HashMap<u32, u32>>,
list_bin: String,
}Available on crate features
kirikiri and kirikiri-arc only.Fields§
§encryption_threshold_map: Mutex<HashMap<u32, u32>>§list_bin: StringImplementations§
Source§impl ChainReactionCryptBase
impl ChainReactionCryptBase
fn new(list_bin: String) -> Self
fn init2(&self, bin: Vec<u8>) -> Result<()>
fn read_list_bin( archive: &mut Xp3Archive<'_>, list_name: &str, ) -> Result<Option<Vec<u8>>>
fn parse_list_bin(&self, data: Vec<u8>) -> Result<()>
fn decode_list_bin(data: Vec<u8>) -> Result<Vec<u8>>
fn decode_dpd(src: &[u8], dst: &mut [u8]) -> Result<()>
fn decode_rle(src: &[u8], dst: &mut [u8], min_repeat: u32) -> Result<()>
Trait Implementations§
Source§impl Debug for ChainReactionCryptBase
impl Debug for ChainReactionCryptBase
Auto Trait Implementations§
impl !Freeze for ChainReactionCryptBase
impl RefUnwindSafe for ChainReactionCryptBase
impl Send for ChainReactionCryptBase
impl Sync for ChainReactionCryptBase
impl Unpin for ChainReactionCryptBase
impl UnwindSafe for ChainReactionCryptBase
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more