bug 修正

This commit is contained in:
ousttrue
2021-10-14 18:43:46 +09:00
parent 9a950f8fab
commit 0a9b989d25

View File

@@ -475,10 +475,10 @@ namespace UniGLTF
return new SpanLike<T>(bytes, Marshal.SizeOf<T>(), getset.Getter, getset.Setter);
}
public static SpanLike<T> Create<T>(int count) where T : struct
public static SpanLike<T> Create<T>(int itemCount) where T : struct
{
var itemSize = Marshal.SizeOf<T>();
var array = new byte[count / itemSize];
var array = new byte[itemCount * itemSize];
return Wrap<T>(new ArraySegment<byte>(array));
}