endianness - Little-endian support in Netty 4 -
the new & noteworthy docs netty 4 state support little-endian -ness has changed significantly, going on show use of bytebuf.order() . whilst that's useful localised use within channel handlers, whole downstream pipeline use little-endian buffers. the upstream handler lengthfieldbasedframedecoder takes constructor argument byte order, downstream handler lengthfieldprepender not. appears support configuration-driven replacement of buffer factories has gone netty 4, how should arrive @ complete little-endian downstream pipeline? i did this, though feels awfully hacky: https://gist.github.com/thomaslee/7871444 if wire in pipeline after lengthfieldprepender run, rewrite (big endian) length field using little endian byte ordering. probably more efficient write length in little endian after measuring length of in & dropping lengthfieldprepender entirely rather adding step pipeline code has been lazily copied & can attest working. :) i love know if