Class Utils_BitSet

  • All Implemented Interfaces:

    
    public class Utils_BitSet
    
                        

    Created by Djamil on 05/01/2018. Check if we can use https://github.com/tomgibara/bits or stick with https://developer.android.com/reference/java/util/BitSet.html

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      Utils_BitSet()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      static BitSet fromByteArrayReverse(Array<byte> bytes) Convert a byte array into a BitSet, MSB first Opposite of toByteArrayReverse ex.: {0x65, 0x80, ...} returns {1, 2, 5, 7, 8, ...
      static Array<byte> toByteArrayReverse(BitSet bits) Convert a BitSet into a byte array Opposite of fromByteArrayReverse
      static int computeDataRate(Array<byte> buf, int captureDataRate) Compute a data rate from a base data reate a a stream of bits WIP, not finished
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait