public static EndianBitConverter CreateForLittleEndianData() { if (BitConverter.IsLittleEndian()) { return(new StraightBitConverter()); } return(SwappingBitConverter()); }
public static EndianBitConverter CreateForBigEngianWords() { if (BitConverter.IsLittleEndian()) { return(new SwappingBitConverter()); } return(StraightBitConverter()); }