Package org.apache.plc4x.java.eip.base
Class EIPDriver.ByteLengthEstimator
- java.lang.Object
-
- org.apache.plc4x.java.eip.base.EIPDriver.ByteLengthEstimator
-
- All Implemented Interfaces:
ToIntFunction<io.netty.buffer.ByteBuf>,HasConfiguration<EIPConfiguration>
- Enclosing class:
- EIPDriver
public static class EIPDriver.ByteLengthEstimator extends Object implements ToIntFunction<io.netty.buffer.ByteBuf>, HasConfiguration<EIPConfiguration>
Estimate the Length of a Packet
-
-
Constructor Summary
Constructors Constructor Description ByteLengthEstimator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intapplyAsInt(io.netty.buffer.ByteBuf byteBuf)voidsetConfiguration(EIPConfiguration configuration)
-
-
-
Method Detail
-
setConfiguration
public void setConfiguration(EIPConfiguration configuration)
- Specified by:
setConfigurationin interfaceHasConfiguration<EIPConfiguration>
-
applyAsInt
public int applyAsInt(io.netty.buffer.ByteBuf byteBuf)
- Specified by:
applyAsIntin interfaceToIntFunction<io.netty.buffer.ByteBuf>
-
-