Class Util

Namespace
CHDSharp.Utils
Assembly
CHDSharpLib.dll

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

b byte[]

The byte array to check.

Returns

bool

true if the array is null or all bytes are zero; otherwise false.

ToHex(byte[]?)

Converts a byte array to a lowercase hexadecimal string.

public static string ToHex(byte[]? a)

Parameters

a byte[]

The byte array to convert, or null.

Returns

string

A lowercase hex string, or "(none)" if the array is null.