Package org.opendaylight.protocol.util
Class ByteBufWriteUtil
java.lang.Object
org.opendaylight.protocol.util.ByteBufWriteUtil
Utility class for ByteBuf's write methods.
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
writeFloat32
(Float32 value, io.netty.buffer.ByteBuf output) Writes Float32value
if not null, otherwise writes zeros to theoutput
ByteBuf.
-
Method Details
-
writeFloat32
Writes Float32value
if not null, otherwise writes zeros to theoutput
ByteBuf. ByteBuf's writerIndex is increased by 4.- Parameters:
value
- Float32 value to be written to the output.output
- ByteBuf, where value or zeros are written.
-