diff --git a/src/DotRecast.Core/Buffers/RcRentedArray.cs b/src/DotRecast.Core/Buffers/RcRentedArray.cs index 68f12c7..e7809f6 100644 --- a/src/DotRecast.Core/Buffers/RcRentedArray.cs +++ b/src/DotRecast.Core/Buffers/RcRentedArray.cs @@ -43,6 +43,11 @@ namespace DotRecast.Core.Buffers return _array; } + public Span AsSpan() + { + return new Span(_array, 0, Length); + } + public void Dispose() {