Embrace nullables

This commit is contained in:
Gustave Monce
2024-06-23 09:17:00 +02:00
parent 8006585c4e
commit beef784483
8 changed files with 185 additions and 264 deletions
+1 -1
View File
@@ -255,7 +255,7 @@ namespace UnifiedFlashingPlatform
return System.Collections.StructuralComparisons.StructuralEqualityComparer.Equals(Array1, Array2);
}
internal static uint? FindPattern(byte[] SourceBuffer, uint SourceOffset, uint? SourceSize, byte[] Pattern, byte[] Mask, byte[] OutPattern)
internal static uint? FindPattern(byte[] SourceBuffer, uint SourceOffset, uint? SourceSize, byte[] Pattern, byte[]? Mask, byte[]? OutPattern)
{
// The mask is optional.
// In the mask 0x00 means the value must match, and 0xFF means that this position is a wildcard.