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

◆ AdvanceToPosition()

static void System.IO.Compression.ZipHelper.AdvanceToPosition ( this Stream stream,
long position )
inlinestaticpackage

Definition at line 104 of file ZipHelper.cs.

105 {
106 long num = position - stream.Position;
107 while (num != 0L)
108 {
109 int count = (int)((num > 64) ? 64 : num);
110 int num2 = stream.Read(new byte[64], 0, count);
111 if (num2 == 0)
112 {
113 throw new IOException(System.SR.UnexpectedEndOfStream);
114 }
115 num -= num2;
116 }
117 }
static string UnexpectedEndOfStream
Definition SR.cs:120
Definition SR.cs:7

References System.count, System.L, System.stream, and System.SR.UnexpectedEndOfStream.