mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-08-07 02:04:47 -05:00
StartWithで十分
This commit is contained in:
parent
38434ee9f9
commit
bddb6f4c65
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user