Class AbEthDriver.ByteLengthEstimator

  • All Implemented Interfaces:
    ToIntFunction<io.netty.buffer.ByteBuf>
    Enclosing class:
    AbEthDriver

    public static class AbEthDriver.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>