We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ec1a9b commit 594cf8cCopy full SHA for 594cf8c
examples/repack.rs
@@ -40,6 +40,13 @@ fn run() -> Result<(), std::io::Error> {
40
let mut f_i = try!(File::open(input_path));
41
let mut f_o = try!(File::create(output_path));
42
let mut pck_rdr = PacketReader::new(&mut f_i);
43
+
44
+ // This call doesn't discard anything as nothing has
45
+ // been stored yet, but it does set bits that
46
+ // make reading logic a bit more tolerant towards
47
+ // errors.
48
+ pck_rdr.delete_unread_packets();
49
50
let mut pck_wtr = PacketWriter::new(&mut f_o);
51
52
loop {
0 commit comments