mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-04-20 23:20:31 +00:00
wip downloading (it doesnt work)
This commit is contained in:
@@ -73,6 +73,13 @@ impl RawPacket {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn from_data(data: Vec<u8>) -> Self {
|
||||
Self {
|
||||
header: data.len() as u32,
|
||||
data,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn from_str(str_data: &str) -> Self {
|
||||
let data = str_data.as_bytes().to_vec();
|
||||
Self {
|
||||
|
||||
Reference in New Issue
Block a user