public static ByteBuf encodeFixedLengthContent(byte[] content){
  ByteBuf out=Unpooled.buffer(2);
  out.writeShort(content.length);
  out.writeBytes(content);
  return out;
}

public static ByteBuf encodeFixedLengthContent ( byte [ ] content ) { ByteBuf out = Unpooled . buffer ( 2 ) ; out . writeShort ( content . length ) ; out . writeBytes ( content ) ; return out ; }
return the iobuffer with string encoded as msb , lsb and bytes array content .
