WebRTC Video Chat 1.1.4
Loading...
Searching...
No Matches
Byn.Awrtc.MessageDataBuffer Interface Reference

This interface is used to return binary message data. More...

Inheritance diagram for Byn.Awrtc.MessageDataBuffer:
Byn.Awrtc.ByteArrayBuffer

Properties

byte[] Buffer [get]
 Returns the buffer that contains the message data. Don't use Buffer.Length! The buffer might be longer than the actually message. use ContentLength to get the length of the content.
 
int Offset [get]
 Offset of the content.
 
int ContentLength [get]
 Returns the length of the buffers content. The byte array might be longer than the actual content! Always use this property not Buffer.Length !!!
 

Detailed Description

This interface is used to return binary message data.

Use MessageDataBuffer.Buffer only to read data between the index Offset and Offset + MessageDataBuffer.ContentLength.

After reading use Dispose to allow the network to reuse this buffer and spare the Garbage Collector the work.

Make sure not to keep any references to MessageDataBuffer.Buffer after calling Dispose! If you need to store the byte array create a copy of the content before using Dispose.

Property Documentation

◆ Buffer

byte [] Byn.Awrtc.MessageDataBuffer.Buffer
get

Returns the buffer that contains the message data. Don't use Buffer.Length! The buffer might be longer than the actually message. use ContentLength to get the length of the content.

Implemented in Byn.Awrtc.ByteArrayBuffer.

◆ ContentLength

int Byn.Awrtc.MessageDataBuffer.ContentLength
get

Returns the length of the buffers content. The byte array might be longer than the actual content! Always use this property not Buffer.Length !!!

Implemented in Byn.Awrtc.ByteArrayBuffer.

◆ Offset

int Byn.Awrtc.MessageDataBuffer.Offset
get

Offset of the content.

Implemented in Byn.Awrtc.ByteArrayBuffer.


The documentation for this interface was generated from the following file: