BUG-612 : switched PCEP RRO subobject serializers to ByteBuf
[bgpcep.git] / pcep / spi / src / main / java / org / opendaylight / protocol / pcep / spi / RROSubobjectSerializer.java
index f95d1f198ed75ed94d75927774c28dac1535dfa1..093f8af0555559881e61a05a5ad2a3e8be602b37 100644 (file)
@@ -7,9 +7,11 @@
  */
 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.reported.route.object.rro.Subobject;
 
 public interface RROSubobjectSerializer {
 
-    byte[] serializeSubobject(Subobject subobject);
+    void serializeSubobject(final Subobject subobject, final ByteBuf buffer);
 }