Class ByteUtils


  • public final class ByteUtils
    extends Object
    Author:
    svenkubiak
    • Method Detail

      • bitLength

        public static int bitLength​(byte[] bytes)
        Calculates the bit length of a given byte array
        Parameters:
        bytes - The byte array
        Returns:
        The number of bit
      • bitLength

        public static int bitLength​(String string)
        Calculates the bit length of a given string
        Parameters:
        string - The string
        Returns:
        The number of bit