Class REDBlock

  • All Implemented Interfaces:
    org.jitsi.utils.ByteArrayBuffer

    public class REDBlock
    extends ByteArrayBufferImpl
    Represents a RED block.
    Author:
    George Politis
    • Constructor Detail

      • REDBlock

        public REDBlock​(byte[] buf,
                        int off,
                        int len,
                        byte pt)
        Ctor.
        Parameters:
        off - the offset in the buffer where this RED block starts
        len - the length of this RED block
        pt - the payload type of this RED block
    • Method Detail

      • isInvalid

        public boolean isInvalid()
        Specified by:
        isInvalid in interface org.jitsi.utils.ByteArrayBuffer
        Overrides:
        isInvalid in class ByteArrayBufferImpl
      • getPayloadType

        public byte getPayloadType()
        Gets the payload type of this RED block.
        Returns:
        the payload type of this RED block