Class SdesItem
Class for parsing and building SDES items. See Section 6.5 of RFC 3550.
Inherited Members
Namespace: SipLib.Rtp
Assembly: SipLib.dll
Syntax
public class SdesItem
Constructors
| Edit this page View SourceSdesItem(SdesItemType, string)
Constructs a new SdesItem for sending as part of a SDES chunk.
Declaration
public SdesItem(SdesItemType Sit, string strPayload)
Parameters
Type | Name | Description |
---|---|---|
SdesItemType | Sit | Type of SDES item. |
string | strPayload | String containing the payload. |
Properties
| Edit this page View SourceItemType
Gets the SDES item type.
Declaration
public SdesItemType ItemType { get; }
Property Value
Type | Description |
---|---|
SdesItemType |
Payload
Gets the string value of the payload. Returns null if there is no payload.
Declaration
public string? Payload { get; }
Property Value
Type | Description |
---|---|
string |
SdesItemLength
Gets the total number of bytes in this SDES item. This includes the SDES item byte byte, the length byte and the payload bytes.
Declaration
public int SdesItemLength { get; }
Property Value
Type | Description |
---|---|
int |
Methods
| Edit this page View SourceParse(byte[], int)
Parses a byte array into an SdesItem
Declaration
public static SdesItem? Parse(byte[] Bytes, int StartIdx)
Parameters
Type | Name | Description |
---|---|---|
byte[] | Bytes | Input byte array containing the SdesItem data to parse |
int | StartIdx | Starting index in the input array |
Returns
Type | Description |
---|---|
SdesItem | Returns an SdesItem if successful or null if an error occurred |
ToByteArray()
Converts this SdesItem to a byte array for loading it into a SDES chunk.
Declaration
public byte[]? ToByteArray()
Returns
Type | Description |
---|---|
byte[] | Returns the byte array for this object. Returns null if there is no payload. |