using DotNetty.Buffers; using DotNetty.Codecs; using DotNetty.Transport.Channels; using HybirdFrameworkDriver.Common; namespace HybirdFrameworkServices.Charger.Codec; public class Encoder : MessageToByteEncoder { protected override void Encode(IChannelHandlerContext context, IToBytes obj, IByteBuffer output) { output.WriteBytes(obj.ToBytes()); } }