This method has been deprecated for at least three years and is not
used anywhere, remove it.
Change-Id: Ied94f803d3a2025542a07ef1e6e9320fd9a7af4a
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
out.writeBytes(hexStringToBytes(hexSrc));
}
- /**
- * Fills specified ByteBuf with 0 (zeros) of desired length, used for padding.
- *
- * @param length the desired length
- * @param out ByteBuf to be padded
- * @deprecated Use {@link ByteBuf#writeZero(int)} directly.
- */
- @Deprecated
- public static void padBuffer(final int length, final ByteBuf out) {
- out.writeZero(length);
- }
-
/**
* Create standard OF header.
*
Assert.assertEquals("Wrong data read", "04 05 06 07", ByteBufUtils.byteBufToHexString(buf));
}
- /**
- * Buffer padding test.
- */
- @Test
- public void testPadBuffer() {
- ByteBuf buf = PooledByteBufAllocator.DEFAULT.buffer();
- ByteBufUtils.padBuffer(4, buf);
- Assert.assertEquals("Wrong padding", 0, buf.readUnsignedInt());
- ByteBufUtils.padBuffer(0, buf);
- Assert.assertTrue("Wrong padding", buf.readableBytes() == 0);
- }
-
/**
* Write OF header test.
*/