dlwp 0.1.0-alpha

The DLWP library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
/// Use a custom encryption method by implementing it in a function that follows the ``encode_function`` and
/// ``decode_function`` fields, any information used for encoding/decoding text can be put in the ``info`` field
#[derive(Clone, Copy, PartialEq)]
pub struct EncryptionInfo {
    /// Your encoding function
    #[allow(improper_ctypes_definitions)]
    pub encode_function: fn([i32; 6], String) -> String,
    #[allow(improper_ctypes_definitions)]
    /// Your decoding function
    pub decode_function: fn([i32; 6], String) -> String,
    /// Information for encoding/decoding information
    pub info: [i32; 6],
}