Class 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 Detail

      • ByteLengthEstimator

        public ByteLengthEstimator()
    • Method Detail

      • applyAsInt

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