Package dev.onvoid.webrtc
Class RTCDataChannelBuffer
java.lang.Object
dev.onvoid.webrtc.RTCDataChannelBuffer
public class RTCDataChannelBuffer
extends java.lang.Object
A NIO based buffer used to send data over an
RTCDataChannel
.- Author:
- Alex Andres
-
Field Summary
-
Constructor Summary
Constructors Constructor Description RTCDataChannelBuffer(java.nio.ByteBuffer data, boolean binary)
Creates an instance of RTCDataChannelBuffer with the specified payload and indicator what kind of data the payload contains. -
Method Summary
-
Field Details
-
Constructor Details
-
RTCDataChannelBuffer
public RTCDataChannelBuffer(java.nio.ByteBuffer data, boolean binary)Creates an instance of RTCDataChannelBuffer with the specified payload and indicator what kind of data the payload contains.- Parameters:
data
- The byte buffer containing the data to send.binary
- Whether the buffer contains UTF-8 text or binary data.
-