Package w.util
Class Hex
java.lang.Object
w.util.Hex
- Author:
- whilein
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte @NotNull []int@NotNull StringtoHex(byte @NotNull [] bytes) @NotNull StringtoHex(byte @NotNull [] bytes, int off, int len) @NotNull Stringchar @NotNull []toHexChars(byte @NotNull [] bytes) char @NotNull []toHexChars(byte @NotNull [] bytes, int off, int len) char @NotNull []toHexChars(@NotNull ByteSlice byteSlice) @NotNull StringtoHexZeroPadded(@NotNull String prefix, @NotNull BigInteger value, int size) @NotNull StringtoHexZeroPadded(@NotNull BigInteger value, int size)
-
Constructor Details
-
Hex
public Hex()
-
-
Method Details
-
toHexChars
-
toHexChars
public char @NotNull [] toHexChars(byte @NotNull [] bytes) -
toHexChars
public char @NotNull [] toHexChars(byte @NotNull [] bytes, int off, int len) -
toHex
-
toHexZeroPadded
-
toHexZeroPadded
@NotNull public @NotNull String toHexZeroPadded(@NotNull @NotNull String prefix, @NotNull @NotNull BigInteger value, int size) -
toHex
-
parseHex
-
fromHex
-
toHex
-