Class HepChunk
Inheritance
System.Object
HepChunk
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 HepChunk
Methods
| Improve this Doc View SourceGetBytes(ChunkTypeEnum, Byte)
Gets the chunk bytes for a single byte chunk type.
Declaration
public static byte[] GetBytes(ChunkTypeEnum chunkType, byte val)
Parameters
Type | Name | Description |
---|---|---|
ChunkTypeEnum | chunkType | |
System.Byte | val |
Returns
Type | Description |
---|---|
System.Byte[] |
GetBytes(ChunkTypeEnum, Byte[])
Gets the chunk bytes for an arbitrary payload.
Declaration
public static byte[] GetBytes(ChunkTypeEnum chunkType, byte[] payload)
Parameters
Type | Name | Description |
---|---|---|
ChunkTypeEnum | chunkType | |
System.Byte[] | payload |
Returns
Type | Description |
---|---|
System.Byte[] |
GetBytes(ChunkTypeEnum, IPAddress)
Gets the chunk bytes for IP address type chunks.
Declaration
public static byte[] GetBytes(ChunkTypeEnum chunkType, IPAddress address)
Parameters
Type | Name | Description |
---|---|---|
ChunkTypeEnum | chunkType | |
System.Net.IPAddress | address |
Returns
Type | Description |
---|---|
System.Byte[] |
GetBytes(ChunkTypeEnum, UInt16)
Gets the chunk bytes for an unsigned short chunk type.
Declaration
public static byte[] GetBytes(ChunkTypeEnum chunkType, ushort val)
Parameters
Type | Name | Description |
---|---|---|
ChunkTypeEnum | chunkType | |
System.UInt16 | val |
Returns
Type | Description |
---|---|
System.Byte[] |
GetBytes(ChunkTypeEnum, UInt32)
Gets the chunk bytes for an unsigned int chunk type.
Declaration
public static byte[] GetBytes(ChunkTypeEnum chunkType, uint val)
Parameters
Type | Name | Description |
---|---|---|
ChunkTypeEnum | chunkType | |
System.UInt32 | val |
Returns
Type | Description |
---|---|
System.Byte[] |