Class RTPPacket
Inheritance
System.Object
RTPPacket
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: SIPSorcery.Net
Assembly: SIPSorcery.dll
Syntax
public class RTPPacket
Constructors
| Improve this Doc View SourceRTPPacket()
Declaration
public RTPPacket()
RTPPacket(Byte[])
Declaration
public RTPPacket(byte[] packet)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | packet |
RTPPacket(Int32)
Declaration
public RTPPacket(int payloadSize)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | payloadSize |
Fields
| Improve this Doc View SourceHeader
Declaration
public RTPHeader Header
Field Value
Type | Description |
---|---|
RTPHeader |
Payload
Declaration
public byte[] Payload
Field Value
Type | Description |
---|---|
System.Byte[] |
Methods
| Improve this Doc View SourceGetBytes()
Declaration
public byte[] GetBytes()
Returns
Type | Description |
---|---|
System.Byte[] |
TryParse(ReadOnlySpan<Byte>, RTPPacket, out Int32)
Declaration
public static bool TryParse(ReadOnlySpan<byte> buffer, RTPPacket packet, out int consumed)
Parameters
Type | Name | Description |
---|---|---|
System.ReadOnlySpan<System.Byte> | buffer | |
RTPPacket | packet | |
System.Int32 | consumed |
Returns
Type | Description |
---|---|
System.Boolean |
TryParse(ReadOnlySpan<Byte>, out RTPPacket, out Int32)
Declaration
public static bool TryParse(ReadOnlySpan<byte> buffer, out RTPPacket packet, out int consumed)
Parameters
Type | Name | Description |
---|---|---|
System.ReadOnlySpan<System.Byte> | buffer | |
RTPPacket | packet | |
System.Int32 | consumed |
Returns
Type | Description |
---|---|
System.Boolean |