Class ByteRangeHeader
Class for parsing and processing the Byte-Range header of a MSRP message. See RFC 4975.
Inherited Members
Namespace: SipLib.Msrp
Assembly: SipLib.dll
Syntax
public class ByteRangeHeader
Constructors
| Edit this page View SourceByteRangeHeader()
Constructor
Declaration
public ByteRangeHeader()
Fields
| Edit this page View SourceEnd
Ending byte number. A value of -1 indicates that the ending byte number is not specified -- its string value is "*".
Declaration
public int End
Field Value
Type | Description |
---|---|
int |
Start
Starting byte number.
Declaration
public int Start
Field Value
Type | Description |
---|---|
int |
Total
Total number of bytes in the MSRP message. A value of -1 indicates that the total number of bytes is not specified -- its string value "*".
Declaration
public int Total
Field Value
Type | Description |
---|---|
int |
Methods
| Edit this page View SourceParseByteRangeHeader(string)
Parses a string into a ByteRangeHeader object.
Declaration
public static ByteRangeHeader? ParseByteRangeHeader(string strValue)
Parameters
Type | Name | Description |
---|---|---|
string | strValue | Input value of the Byte-Range header |
Returns
Type | Description |
---|---|
ByteRangeHeader | Returns a new ByteRangeHeader object. Returns null if the input string is not a properly formatted Byte-Range header. |
ToString()
Builds a Byte-Range header value as a string
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | Returns the fully formatted Byte-Range header. |