private TryParseRange ( string header, int &start, int &end ) : bool | ||
header | string | |
start | int | |
end | int | |
Résultat | bool |
private bool TryParseRange(string header, out int start, out int end)
{
if (header.StartsWith("bytes="))
{
string[] rangeValues = header.Substring(6).Split('-');
if (rangeValues.Length == 2)
{
if (Int32.TryParse(rangeValues[0], out start) && Int32.TryParse(rangeValues[1], out end))
return true;
}
}
start = end = 0;
return false;
}
string HandleMatTableReq(string request, string path, string param,