Class S7Driver.ByteLengthEstimator

java.lang.Object
org.apache.plc4x.java.s7.readwrite.S7Driver.ByteLengthEstimator
All Implemented Interfaces:
ToIntFunction<io.netty.buffer.ByteBuf>
Enclosing class:
S7Driver

public static class S7Driver.ByteLengthEstimator extends Object implements ToIntFunction<io.netty.buffer.ByteBuf>
Estimate the Length of a Packet
  • Constructor Details

    • ByteLengthEstimator

      public ByteLengthEstimator()
  • Method Details

    • applyAsInt

      public int applyAsInt(io.netty.buffer.ByteBuf byteBuf)
      Specified by:
      applyAsInt in interface ToIntFunction<io.netty.buffer.ByteBuf>