Class ByteBufWriteUtil

  • public final class ByteBufWriteUtil
    extends Object
    Utility class for ByteBuf's write methods.
    • Method Detail

      • writeFloat32

        public static void writeFloat32​(Float32 value,
                                        io.netty.buffer.ByteBuf output)
        Writes Float32 value if not null, otherwise writes zeros to the output ByteBuf. ByteBuf's writerIndex is increased by 4.
        value - Float32 value to be written to the output.
        output - ByteBuf, where value or zeros are written.