BUG-612 : switched PCEP XRO subobject serializers to ByteBuf
[bgpcep.git] / pcep / spi / src / main / java / org / opendaylight / protocol / pcep / spi / XROSubobjectRegistry.java
index 8df7ed902c87422108478465434b032c91fd3f26..f6b28017fa2017dc1fe1e52b6ec013535005b547 100644 (file)
@@ -27,7 +27,7 @@ public interface XROSubobjectRegistry {
      * Find serializer for given subobject. Delegates parsing to found serializer.
      *
      * @param subobject to be parsed
-     * @return null if the serializer for this subobject could not be found
+     * @param buffer buffer where the serialized subobject will be parsed
      */
-    byte[] serializeSubobject(final Subobject subobject);
+    void serializeSubobject(final Subobject subobject, final ByteBuf buffer);
 }