Class InstructionUtil


  • public final class InstructionUtil
    extends Object
    Utility class for instruction serialization.
    • Method Detail

      • writeInstruction

        public static void writeInstruction​(Instruction instruction,
                                            short version,
                                            SerializerRegistry registry,
                                            io.netty.buffer.ByteBuf outBuffer)
        Serialize instruction.
        Parameters:
        instruction - OpenFlow instruction
        version - OpenFlow version
        registry - OpenFlowJava serializer registry
        outBuffer - output buffer
      • writeInstructionHeader

        public static void writeInstructionHeader​(Instruction instruction,
                                                  short version,
                                                  SerializerRegistry registry,
                                                  io.netty.buffer.ByteBuf outBuffer)
        Serialize instruction header.
        Parameters:
        instruction - OpenFlow instruction
        version - OpenFlow version
        registry - OpenFlowJava serializer registry
        outBuffer - output buffer