title: Netty - Make all created buffers be little-endian by default
body: <p>I need to create channelbuffers in Netty in little-endian byte format by default, and to what I understand I use this piece of code.</p>
  
  <pre><code>bootstrap.setOption("child.bufferFactory", new HeapChannelBufferFactory(ByteOrder.LITTLE_ENDIAN));
  </code></pre>
  
  <p>However when I created new channel buffers, they are big-endian, and thus I must make them little-endian manually.</p>
  
  <p>Is there a way to make all channel buffers be little-endian by default? </p>
  
  <p>Thank you!</p>
  
  <p>EDIT:</p>
  
  <p>I'm creating buffers like such:</p>
  
  <pre><code>ChannelBuffer opcodeBuffer = ChannelBuffers.buffer(ByteOrder.LITTLE_ENDIAN, 4);
  </code></pre>
  
  <p>If I create them like this</p>
  
  <pre><code>ChannelBuffer opcodeBuffer = ChannelBuffers.buffer(4);
  </code></pre>
  
  <p>They are not little-endian</p>