示例#1
0
 public static EndianBitConverter CreateForLittleEndianData()
 {
     if (BitConverter.IsLittleEndian())
     {
         return(new StraightBitConverter());
     }
     return(SwappingBitConverter());
 }
示例#2
0
 public static EndianBitConverter CreateForBigEngianWords()
 {
     if (BitConverter.IsLittleEndian())
     {
         return(new SwappingBitConverter());
     }
     return(StraightBitConverter());
 }