You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
411 B

using DotNetty.Buffers;
using DotNetty.Codecs;
using DotNetty.Transport.Channels;
using log4net;
namespace Service.Padar.Codec;
public class Encoder : MessageToByteEncoder<byte[]>
{
private static readonly ILog Log = LogManager.GetLogger(typeof(Encoder));
protected override void Encode(IChannelHandlerContext context, byte[] obj, IByteBuffer output)
{
output.WriteBytes(obj);
}
}