Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ TrySkipBlock()

static bool System.IO.Compression.ZipLocalFileHeader.TrySkipBlock ( BinaryReader reader)
inlinestatic

Definition at line 24 of file ZipLocalFileHeader.cs.

25 {
26 if (reader.ReadUInt32() != 67324752)
27 {
28 return false;
29 }
30 if (reader.BaseStream.Length < reader.BaseStream.Position + 22)
31 {
32 return false;
33 }
34 reader.BaseStream.Seek(22L, SeekOrigin.Current);
35 ushort num = reader.ReadUInt16();
36 ushort num2 = reader.ReadUInt16();
37 if (reader.BaseStream.Length < reader.BaseStream.Position + num + num2)
38 {
39 return false;
40 }
41 reader.BaseStream.Seek(num + num2, SeekOrigin.Current);
42 return true;
43 }

References System.IO.BinaryReader.BaseStream, System.L, System.IO.BinaryReader.ReadUInt16(), and System.IO.BinaryReader.ReadUInt32().

Referenced by System.IO.Compression.ZipArchiveEntry.IsOpenable().