@Test public void testSerialize() { BarrierReplyMessageFactory serializer = new BarrierReplyMessageFactory(); SerializerRegistry registry = new NetIdeSerializerRegistryImpl(); registry.init(); ByteBuf serializedBuffer = UnpooledByteBufAllocator.DEFAULT.buffer(); serializer.serialize(message, serializedBuffer); BufferHelper.checkHeaderV13(serializedBuffer, MESSAGE_TYPE, 8); }
@Override public void serialize(BarrierOutput message, ByteBuf outBuffer) { ByteBufUtils.writeOFHeader(MESSAGE_TYPE, message, outBuffer, EncodeConstants.EMPTY_LENGTH); ByteBufUtils.updateOFHeaderLength(outBuffer); }
BarrierReplyMessageFactory implements OFSerializer<BarrierOutput> { @Override public void serialize(BarrierOutput message, ByteBuf outBuffer) { ByteBufUtils.writeOFHeader(MESSAGE_TYPE, message, outBuffer, EncodeConstants.EMPTY_LENGTH); ByteBufUtils.updateOFHeaderLength(outBuffer); } }
BarrierReplyMessageFactory implements OFSerializer<BarrierOutput> { @Override public void serialize(BarrierOutput message, ByteBuf outBuffer) { ByteBufUtils.writeOFHeader(MESSAGE_TYPE, message, outBuffer, EncodeConstants.EMPTY_LENGTH); ByteBufUtils.updateOFHeaderLength(outBuffer); }  }
BarrierReplyMessageFactory implements OFSerializer<BarrierOutput> { @Override public void serialize(BarrierOutput message, ByteBuf outBuffer) { ByteBufUtils.writeOFHeader(MESSAGE_TYPE, message, outBuffer, EncodeConstants.EMPTY_LENGTH); ByteBufUtils.updateOFHeaderLength(outBuffer); }  @Override void serialize(BarrierOutput message, ByteBuf outBuffer); }
BarrierReplyMessageFactory implements OFSerializer<BarrierOutput> { @Override public void serialize(BarrierOutput message, ByteBuf outBuffer) { ByteBufUtils.writeOFHeader(MESSAGE_TYPE, message, outBuffer, EncodeConstants.EMPTY_LENGTH); ByteBufUtils.updateOFHeaderLength(outBuffer); }  @Override void serialize(BarrierOutput message, ByteBuf outBuffer);  }