fix Count() to Count

This commit is contained in:
hirose
2019-12-16 21:51:52 +09:00
parent c842e577c4
commit 071f7d56fd

View File

@@ -119,7 +119,7 @@ namespace UniGLTF
where TFrom: struct
where TTo : struct
{
var bytes = new byte[src.Count() * Marshal.SizeOf(typeof(TFrom))];
var bytes = new byte[src.Count * Marshal.SizeOf(typeof(TFrom))];
using (var pin = Pin.Create(src))
{
Marshal.Copy(pin.Ptr, bytes, 0, bytes.Length);