Skip to main content
Version: 20 Mar 2024

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

TypeNameDescription
stringmessageThe 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

TypeNameDescription
T []messageThe 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;