mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-09-26 21:01:15 -05:00
StartWithで十分
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user