Class AbstractOxmMatchEntrySerializer

    • Constructor Detail

      • AbstractOxmMatchEntrySerializer

        public AbstractOxmMatchEntrySerializer()
    • Method Detail

      • serialize

        public void serialize​(MatchEntry entry,
                              io.netty.buffer.ByteBuf outBuffer)
        Description copied from interface: OFSerializer
        Transforms POJO/DTO into byte message (ByteBuf).
        Specified by:
        serialize in interface OFSerializer<MatchEntry>
        Parameters:
        entry - object to be serialized
        outBuffer - output buffer
      • serializeHeader

        public void serializeHeader​(MatchEntry entry,
                                    io.netty.buffer.ByteBuf outBuffer)
        Description copied from interface: HeaderSerializer
        Serializes object headers (e.g. for Multipart message - Table Features).
        Specified by:
        serializeHeader in interface HeaderSerializer<MatchEntry>
        Parameters:
        entry - object whose headers should be serialized
        outBuffer - output buffer
      • writeMask

        protected static void writeMask​(byte[] mask,
                                        io.netty.buffer.ByteBuf out,
                                        int length)
      • writeOxmFieldAndLength

        protected static void writeOxmFieldAndLength​(io.netty.buffer.ByteBuf out,
                                                     int fieldValue,
                                                     boolean hasMask,
                                                     int lengthArg)
      • getOxmFieldCode

        protected abstract int getOxmFieldCode()
        Returns the numeric representation of oxm_field.
      • getOxmClassCode

        protected abstract int getOxmClassCode()
        Returns the numeric representation of oxm_class.
      • getValueLength

        protected abstract int getValueLength()
        Returns the match entry value length (without mask length).