Also pass the ByteOrder in getUnadjustedFrameLength method. Part of #1960