Fixed bug in ImageResultFloat

Added scoped to in TKey key
This commit is contained in:
2026-03-15 17:22:22 +09:00
parent 2e08a8ad95
commit 8edb04263f
10 changed files with 171 additions and 56 deletions

View File

@@ -88,14 +88,14 @@ public unsafe readonly struct ImageResultFloat : IDisposable
return FromStream(stream, requiredComponents);
}
public Span<byte> AsSpan()
public Span<float> AsSpan()
{
if (Data == null)
{
return Span<byte>.Empty;
return Span<float>.Empty;
}
return new Span<byte>(Data, (int)Size);
return new Span<float>(Data, (int)Size);
}
public void Dispose()