BUG-64 : refactor BGP parser to use ByteBuf
[bgpcep.git] / bgp / parser-spi / src / main / java / org / opendaylight / protocol / bgp / parser / spi / ParameterParser.java
index 32f4c22da8011434818e50242b5cf1f39dcc8f7e..a07513889f8afaa136f16d7416b7ad08fcd5a870 100644 (file)
@@ -7,10 +7,12 @@
  */
 package org.opendaylight.protocol.bgp.parser.spi;
 
+import io.netty.buffer.ByteBuf;
+
 import org.opendaylight.protocol.bgp.parser.BGPDocumentedException;
 import org.opendaylight.protocol.bgp.parser.BGPParsingException;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.message.rev130919.open.BgpParameters;
 
 public interface ParameterParser {
-       BgpParameters parseParameter(byte[] bytes) throws BGPParsingException, BGPDocumentedException;
+       BgpParameters parseParameter(ByteBuf buffer) throws BGPParsingException, BGPDocumentedException;
 }