Xamarin Public Jenkins (auto-signing) e2950ec768 Imported Upstream version 5.10.0.69
Former-commit-id: fc39669a0b707dd3c063977486506b6793da2890
2018-01-29 19:03:06 +00:00

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 ();
}
}
}