mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
DOCUMENTATION: Added XML documentation to DiscImageChef.Helpers.
This commit is contained in:
@@ -36,11 +36,21 @@ namespace DiscImageChef
|
||||
{
|
||||
public static partial class ArrayHelpers
|
||||
{
|
||||
/// <summary>
|
||||
/// Checks if an array is null, filled with the NULL byte (0x00) or ASCII whitespace (0x20)
|
||||
/// </summary>
|
||||
/// <param name="array">Array</param>
|
||||
/// <returns>True if null or whitespace</returns>
|
||||
public static bool ArrayIsNullOrWhiteSpace(byte[] array)
|
||||
{
|
||||
return array == null || array.All(b => b == 0x00 || b == 0x20);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Checks if an array is null or filled with the NULL byte (0x00)
|
||||
/// </summary>
|
||||
/// <param name="array">Array</param>
|
||||
/// <returns>True if null</returns>
|
||||
public static bool ArrayIsNullOrEmpty(byte[] array)
|
||||
{
|
||||
return array == null || array.All(b => b == 0x00);
|
||||
|
||||
Reference in New Issue
Block a user