Package io.mangoo.utils
Class ByteUtils
- java.lang.Object
-
- io.mangoo.utils.ByteUtils
-
public final class ByteUtils extends Object
- Author:
- svenkubiak
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intbitLength(byte[] bytes)Calculates the bit length of a given byte arraystatic intbitLength(String string)Calculates the bit length of a given string
-
-
-
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
-
-