src/Orleans.Serialization/Buffers/Adaptors/PooledArrayBufferWriter.cs
/// <summary>
/// Returns the data which has been written as an array.
/// </summary>
/// <returns>The data which has been written.</returns>
Returns the data which has been written as an array.
Returns the data which has been written as an array .
public byte[] ToArray()
        {
            var result = new byte[_totalLength];
            var resultSpan = result.AsSpan();
            foreach (var (buffer, length) in _committed)
            {
                buffer.AsSpan(0, length).CopyTo(resultSpan);
                resultSpan = resultSpan.Slice(length);
            }
            return result;
        }
public byte [ ] ToArray ( ) { var result = new byte [ _totalLength ] ; var resultSpan = result . AsSpan ( ) ; foreach ( var ( buffer , length ) in _committed ) { buffer . AsSpan ( 0 , length ) . CopyTo ( resultSpan ) ; resultSpan = resultSpan . Slice ( length ) ; } return result ; }
Returns the data which has been written as an array.
Returns the data which has been written as an array .
The data which has been written.
The data which has been written .