StartWithで十分

This commit is contained in:
momoma-null 2026-06-19 13:05:23 +09:00 committed by hadashiA
parent 38434ee9f9
commit bddb6f4c65

View File

@ -76,7 +76,7 @@ namespace UniGLTF
}
int pos = 0;
if (!bytes[..4].Span.SequenceEqual(GLB_MAGIC_BYTES.Span))
if (!bytes.Span.StartsWith(GLB_MAGIC_BYTES.Span))
{
throw new GlbParseException("invalid magic");
}