java.lang.Object
com.pi4j.crowpi.components.helpers.ByteHelpers
This class provides various helper methods for dealing with byte arrays.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
ByteHelpers
public ByteHelpers()
-
-
Method Details
-
toArray
Converts a Byte-List into an array of bytes- Parameters:
values
- List of bytes- Returns:
- Array of bytes
-
toString
Converts a single byte into a 0x prefixed hexadecimal string- Parameters:
value
- Byte to convert- Returns:
- Human-readable hexadecimal string
-
toString
Converts an array of bytes into a 0x prefixed hexadecimal string- Parameters:
bytes
- Bytes to convert- Returns:
- Human-readable hexadecimal string
-