Returns true if byte array starts with the given BOM sequence. Safe with noUncheckedIndexedAccess — compares byte by byte with guard.
Returns true if byte array starts with the given BOM sequence. Safe with noUncheckedIndexedAccess — compares byte by byte with guard.