BUG-612 : switched PCEP XRO subobject serializers to ByteBuf
[bgpcep.git] / pcep / spi / src / main / java / org / opendaylight / protocol / pcep / spi / XROSubobjectSerializer.java
index 0b3318e9f0964597b926d55f95ce68ee5157fa33..3be736480fdbb240e14c79e520d1555eddb717e4 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.exclude.route.object.xro.Subobject;
 
 public interface XROSubobjectSerializer {
 
-    byte[] serializeSubobject(Subobject subobject);
+    void serializeSubobject(final Subobject subobject, final ByteBuf buffer);
 }