Package tvi.webrtc

Class DataChannel.Buffer

java.lang.Object
tvi.webrtc.DataChannel.Buffer
Enclosing class:
DataChannel

public static class DataChannel.Buffer extends Object
Java version of C++ DataBuffer. The atom of data in a DataChannel.
  • Field Details

    • data

      public final ByteBuffer data
      The underlying data.
    • binary

      public final boolean binary
      Indicates whether `data` contains UTF-8 text or "binary data" (i.e. anything else).
  • Constructor Details

    • Buffer

      public Buffer(ByteBuffer data, boolean binary)