java.lang.Object
dev.onvoid.webrtc.RTCDataChannelBuffer
A NIO based buffer used to send data over an
RTCDataChannel
.- Author:
- Alex Andres
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal boolean
Indicates whether the data contains UTF-8 text or binary data.final ByteBuffer
The underlying data. -
Constructor Summary
ConstructorsConstructorDescriptionRTCDataChannelBuffer
(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
-
data
The underlying data. -
binary
public final boolean binaryIndicates whether the data contains UTF-8 text or binary data.
-
-
Constructor Details
-
RTCDataChannelBuffer
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.
-