Class Util
General-purpose utility methods for byte array comparisons, hashing, and ASCII detection used throughout the CHD reader.
public static class Util
- Inheritance
-
Util
- Inherited Members
Methods
IsAllZeroArray(byte[]?)
Determines whether every byte in the array is zero (or the array is null).
public static bool IsAllZeroArray(byte[]? b)
Parameters
bbyte[]The byte array to check.
Returns
- bool
trueif the array is null or all bytes are zero; otherwisefalse.
ToHex(byte[]?)
Converts a byte array to a lowercase hexadecimal string.
public static string ToHex(byte[]? a)
Parameters
abyte[]The byte array to convert, or null.
Returns
- string
A lowercase hex string, or "(none)" if the array is null.