<div>1. What is the way to switch an &quot;endian&quot; on a decode / messageReceived?</div><div><br></div><div>    class SomePacketDecoder(...) extends FrameDecoder {</div><div><br></div><div>      override def decode( ctx: ChannelHandlerContext,</div>
<div>                                     channel: Channel,</div><div>                                     buf: ChannelBuffer ): AnyRef = {</div><div><br></div><div>          buf.readableBytes  // &lt;&lt;&lt;===== how to ensure that this is read in Little Endian? Would a FrameDecoder already &quot;pre read&quot; it in a Big Endian, before it gets to this point?</div>
<div><br></div><div>    }</div><div><br></div>2. Is there a way to set a Big/Little Endian setting globally for a Netty client, so it is able to be easily reused when connected to different servers?<div><br></div><div>Thank you!</div>