diff options
Diffstat (limited to 'release-notes/7.0/preview/api-diff/preview5/Microsoft.NETCore.App/7.0-preview5_System.IO.md')
-rw-r--r-- | release-notes/7.0/preview/api-diff/preview5/Microsoft.NETCore.App/7.0-preview5_System.IO.md | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/release-notes/7.0/preview/api-diff/preview5/Microsoft.NETCore.App/7.0-preview5_System.IO.md b/release-notes/7.0/preview/api-diff/preview5/Microsoft.NETCore.App/7.0-preview5_System.IO.md new file mode 100644 index 00000000..f177f46c --- /dev/null +++ b/release-notes/7.0/preview/api-diff/preview5/Microsoft.NETCore.App/7.0-preview5_System.IO.md @@ -0,0 +1,23 @@ +# System.IO + +``` diff + namespace System.IO { + public static class File { ++ public static IAsyncEnumerable<string> ReadLinesAsync(string path, Encoding encoding, CancellationToken cancellationToken = default(CancellationToken)); ++ public static IAsyncEnumerable<string> ReadLinesAsync(string path, CancellationToken cancellationToken = default(CancellationToken)); + } + public class FileStream : Stream { + public virtual void Lock(long position, long length); + public virtual void Unlock(long position, long length); + } + public abstract class Stream : MarshalByRefObject, IAsyncDisposable, IDisposable { ++ public int ReadAtLeast(Span<byte> buffer, int minimumBytes, bool throwOnEndOfStream = true); ++ public ValueTask<int> ReadAtLeastAsync(Memory<byte> buffer, int minimumBytes, bool throwOnEndOfStream = true, CancellationToken cancellationToken = default(CancellationToken)); ++ public void ReadExactly(byte[] buffer, int offset, int count); ++ public void ReadExactly(Span<byte> buffer); ++ public ValueTask ReadExactlyAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken = default(CancellationToken)); ++ public ValueTask ReadExactlyAsync(Memory<byte> buffer, CancellationToken cancellationToken = default(CancellationToken)); + } + } +``` + |