1
0
Fork 0
mirror of https://codeberg.org/demostf/parser.git synced 2026-06-04 02:24:12 +02:00

optimize packet/message format a bit

This commit is contained in:
Robin Appelman 2019-10-11 22:07:19 +02:00
commit 4cf1e92657
7 changed files with 36 additions and 28 deletions

View file

@ -10,7 +10,7 @@ use crate::{Parse, ParseError, ParserState, ReadResult, Result, Stream};
#[derive(Debug)]
pub struct CreateStringTableMessage {
pub table: StringTable,
pub table: Box<StringTable>,
}
#[derive(Debug)]
@ -85,7 +85,9 @@ impl Parse for CreateStringTableMessage {
compressed,
name,
};
Ok(CreateStringTableMessage { table })
Ok(CreateStringTableMessage {
table: Box::new(table),
})
}
}