public object Decode(IChannel channel, PacketBuffer buffer) { var data = new byte[buffer.AvailableBytes()]; buffer.ReadBytes(data); return data; }