RcRentedArray AsSpan

This commit is contained in:
wrenge 2024-11-13 11:54:10 +03:00
parent c7c6e53d61
commit dbc92a9aef
1 changed files with 5 additions and 0 deletions

View File

@ -43,6 +43,11 @@ namespace DotRecast.Core.Buffers
return _array; return _array;
} }
public Span<T> AsSpan()
{
return new Span<T>(_array, 0, Length);
}
public void Dispose() public void Dispose()
{ {