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

◆ ContentRangeHeaderValue() [3/5]

System.Net.Http.Headers.ContentRangeHeaderValue.ContentRangeHeaderValue ( long from,
long to )
inline

Definition at line 69 of file ContentRangeHeaderValue.cs.

70 {
71 if (to < 0)
72 {
73 throw new ArgumentOutOfRangeException("to");
74 }
75 if (from < 0 || from > to)
76 {
77 throw new ArgumentOutOfRangeException("from");
78 }
79 _from = from;
80 _to = to;
81 _unit = "bytes";
82 }

References System.Net.Http.Headers.ContentRangeHeaderValue._from, System.Net.Http.Headers.ContentRangeHeaderValue._to, and System.Net.Http.Headers.ContentRangeHeaderValue._unit.