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

◆ Position

override long System.Net.Http.MultipartContent.ContentReadStream.Position
getset

Definition at line 33 of file MultipartContent.cs.

34 {
35 get
36 {
37 return _position;
38 }
39 set
40 {
41 if (value < 0)
42 {
43 throw new ArgumentOutOfRangeException("value");
44 }
45 long num = 0L;
46 for (int i = 0; i < _streams.Length; i++)
47 {
49 long length = stream.Length;
50 if (value < num + length)
51 {
53 i = (_next = i + 1);
54 stream.Position = value - num;
55 for (; i < _streams.Length; i++)
56 {
57 _streams[i].Position = 0L;
58 }
60 return;
61 }
62 num += length;
63 }
64 _current = null;
67 }
68 }

Referenced by System.Net.Http.MultipartContent.ContentReadStream.Seek().