BUG-612 : switch XRO to ByteBuf.
[bgpcep.git] / pcep / spi / src / main / java / org / opendaylight / protocol / pcep / spi / XROSubobjectRegistry.java
index 69b03273e1f5aa8a9533375ddb99da1985f717ae..5a9cb1e95e459a97972aa19217e5095954feecc8 100644 (file)
@@ -7,18 +7,20 @@
  */
 package org.opendaylight.protocol.pcep.spi;
 
+import io.netty.buffer.ByteBuf;
+
 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev131005.exclude.route.object.xro.Subobject;
 
 public interface XROSubobjectRegistry {
        /**
         * Finds parser for given subobject type in the registry. Delegates parsing to found parser.
         * @param type subobject type, key in parser registry
-        * @param buffer subobject raw binary value to be parsed
+        * @param buffer subobject wrapped in ByteBuf
         * @param mandatory XRO specific common field
         * @return null if the parser for this subobject could not be found
         * @throws PCEPDeserializerException if the parsing did not succeed
         */
-       Subobject parseSubobject(final int type, final byte[] buffer, final boolean mandatory) throws PCEPDeserializerException;
+       Subobject parseSubobject(final int type, final ByteBuf buffer, final boolean mandatory) throws PCEPDeserializerException;
 
        /**
         * Find serializer for given subobject. Delegates parsing to found serializer.