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