mirror of
https://github.com/lifegpc/msg-tool.git
synced 2026-06-07 05:18:44 +08:00
Add import support for escude script
This commit is contained in:
@@ -458,6 +458,8 @@ pub trait WriteExt {
|
||||
fn write_i64_be(&mut self, value: i64) -> Result<()>;
|
||||
fn write_i128(&mut self, value: i128) -> Result<()>;
|
||||
fn write_i128_be(&mut self, value: i128) -> Result<()>;
|
||||
|
||||
fn write_cstring(&mut self, value: &CString) -> Result<()>;
|
||||
}
|
||||
|
||||
impl<T: Write> WriteExt for T {
|
||||
@@ -515,6 +517,10 @@ impl<T: Write> WriteExt for T {
|
||||
fn write_i128_be(&mut self, value: i128) -> Result<()> {
|
||||
self.write_all(&value.to_be_bytes())
|
||||
}
|
||||
|
||||
fn write_cstring(&mut self, value: &CString) -> Result<()> {
|
||||
self.write_all(value.as_bytes_with_nul())
|
||||
}
|
||||
}
|
||||
|
||||
pub struct MemReader {
|
||||
|
||||
Reference in New Issue
Block a user