public interface HeaderDecoder
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final long
     
  • Method Summary

    Modifier and Type
    Method
    Description
    default int
    getMessageLength(io.netty.buffer.ByteBuf buffer, int maxMessageLength)
    Get the message length from a ByteBuf containing a TcpMessageEncoder.
  • Field Details

  • Method Details

    • getMessageLength

      default int getMessageLength(io.netty.buffer.ByteBuf buffer, int maxMessageLength) throws UaException
      Get the message length from a ByteBuf containing a TcpMessageEncoder. The reader index will not be advanced.
      Parameters:
      buffer - ByteBuf to extract from.
      Returns:
      The message length, which includes the size of the header.
      Throws:
      UaException