MessageHeaders.getContentRange

bool getContentRange(out long start, out long end, out long totalLength)

Parses hdrs's Content-Range header and returns it in start, end, and total_length. If the total length field in the header was specified as "*", then total_length will be set to -1.

Parameters

startreturn value for the start of the range
endreturn value for the end of the range
totalLengthreturn value for the total length of the resource, or null if you don't care.

Returns

true if hdrs contained a "Content-Range" header

containing a byte range which could be parsed, false otherwise.