forked from mirror/DotRecast
RcRentedArray AsSpan
This commit is contained in:
parent
c7c6e53d61
commit
dbc92a9aef
|
@ -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()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue