Interface LabelRegistry

    • Method Detail

      • parseLabel

        LabelType parseLabel​(int ctype,
                             io.netty.buffer.ByteBuf buffer)
                      throws PCEPDeserializerException
        Finds parser for given label C-type in the registry. Delegates parsing to found parser.
        ctype - label type, key in parser registry
        buffer - label wrapped in ByteBuf
        null if the parser for this label could not be found
        PCEPDeserializerException - if the parsing did not succeed
      • serializeLabel

        void serializeLabel​(boolean unidirectional,
                            boolean global,
                            LabelType label,
                            io.netty.buffer.ByteBuf buffer)
        Find serializer for given label. Delegates parsing to found serializer.
        unidirectional - label common header flag
        global - label commom header flag
        label - to be parsed
        buffer - buffer where the serialized label will be parsed