mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-18 20:58:06 +00:00
16 lines
402 B
C#
16 lines
402 B
C#
using System;
|
|
namespace Problems {
|
|
public static class Problems {
|
|
public static void Func(ReadOnlySpan<byte> data) {
|
|
var count = 0;
|
|
if (data.Length < 4) {
|
|
return;
|
|
}
|
|
if (data[0] == 0) { count++; }
|
|
if (data[1] == 1) { count++; }
|
|
if (data[2] == 2) { count++; }
|
|
if (count >= 3) { throw new Exception("this is bad"); }
|
|
}
|
|
}
|
|
}
|