MLWebRTCDataChannelMessage
The native representation of the MLWebRTC data channel message.
Public Methods
MLWebRTCDataChannelMessage Create
Creates an initialized MLWebRTCDataChannelMessage object.
public static MLWebRTCDataChannelMessage Create(
string message
)
Parameters
Type | Name | Description |
---|---|---|
string | message | The string message to send. |
Returns: An initialized MLWebRTCDataChannelMessage object.
MLWebRTCDataChannelMessage Create< T >
Creates an initialized MLWebRTCDataChannelMessage object.
public static MLWebRTCDataChannelMessage Create< T >(
T [] message
)
Parameters
Type | Name | Description |
---|---|---|
T [] | message | The byte array message to send. |
Returns: An initialized MLWebRTCDataChannelMessage object.
Public Attributes
Data
Pointer to the message in unmanaged memory.
public IntPtr Data;
DataSize
Describes how large the unmanaged data is.
public ulong DataSize;
IsBinary
Determines if the message is a string or byte array.
public bool IsBinary;
Version
Version of the struct.
public uint Version;