e2950ec768
Former-commit-id: fc39669a0b707dd3c063977486506b6793da2890
31 lines
842 B
C#
31 lines
842 B
C#
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace System.IO
|
|
{
|
|
partial class Stream
|
|
{
|
|
public virtual int Read (Span<byte> destination)
|
|
{
|
|
throw new NotImplementedException ();
|
|
}
|
|
|
|
public virtual void Write (ReadOnlySpan<byte> source)
|
|
{
|
|
throw new NotImplementedException ();
|
|
}
|
|
|
|
public virtual ValueTask<int> ReadAsync(Memory<byte> destination, CancellationToken cancellationToken = default(CancellationToken))
|
|
{
|
|
if (destination.TryGetArray (out ArraySegment<byte> array))
|
|
return new ValueTask<int> (ReadAsync (array.Array, array.Offset, array.Count, cancellationToken));
|
|
|
|
throw new NotImplementedException ();
|
|
}
|
|
|
|
public virtual Task WriteAsync (ReadOnlyMemory<byte> source, CancellationToken cancellationToken = default(CancellationToken))
|
|
{
|
|
throw new NotImplementedException ();
|
|
}
|
|
}
|
|
} |