trait CustomFn {
// Required methods
fn equal(&self, other: &[u8]) -> bool;
fn get_ws2_string(&self, encoding: Encoding) -> Result<Ws2String>;
}
Available on crate feature
will-plus
only.Required Methods§
Sourcefn equal(&self, other: &[u8]) -> bool
fn equal(&self, other: &[u8]) -> bool
check if the current reader’s position matches the given byte slice 0xFF in the slice is treated as a wildcard that matches any byte
Sourcefn get_ws2_string(&self, encoding: Encoding) -> Result<Ws2String>
fn get_ws2_string(&self, encoding: Encoding) -> Result<Ws2String>
Reads a string from the current position, decodes it using the specified encoding,