Home
last modified time | relevance | path

Searched refs:ReadBlockAsync (Results 1 – 25 of 27) sorted by relevance

12

/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.IO/tests/StringReader/
H A DStringReaderTests.netcoreapp.cs86 Assert.Equal(2, await reader.ReadBlockAsync(m)); in ReadBlockMemoryAsync_Success()
89 Assert.Equal(1, await reader.ReadBlockAsync(m.Slice(0, 1))); in ReadBlockMemoryAsync_Success()
92 Assert.Equal(2, await reader.ReadBlockAsync(m)); in ReadBlockMemoryAsync_Success()
95 Assert.Equal(1, await reader.ReadBlockAsync(m)); in ReadBlockMemoryAsync_Success()
98 Assert.Equal(0, await reader.ReadBlockAsync(m)); in ReadBlockMemoryAsync_Success()
110 … Assert.Throws<ObjectDisposedException>(() => { reader.ReadBlockAsync(Memory<char>.Empty); }); in Disposed_ThrowsException()
119 …await Assert.ThrowsAnyAsync<OperationCanceledException>(() => reader.ReadBlockAsync(Memory<char>.E… in Precanceled_ThrowsException()
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Console/tests/
H A DSyncTextReader.cs160 public void ReadBlockAsync() in ReadBlockAsync() method in SyncTextReader
168 var result = Console.In.ReadBlockAsync(buffer, 0, 5).Result; in ReadBlockAsync()
176 Assert.Throws<ArgumentNullException>(() => { Console.In.ReadBlockAsync(null, 0, 0); }); in ReadBlockAsync()
177 …Assert.Throws<ArgumentOutOfRangeException>(() => { Console.In.ReadBlockAsync(new char[1], -1, 0); … in ReadBlockAsync()
178 …Assert.Throws<ArgumentOutOfRangeException>(() => { Console.In.ReadBlockAsync(new char[1], 0, -1); … in ReadBlockAsync()
179 …AssertExtensions.Throws<ArgumentException>(null, () => { Console.In.ReadBlockAsync(new char[1], 1,… in ReadBlockAsync()
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.IO/tests/StreamReader/
H A DStreamReaderTests.netcoreapp.cs25 Assert.Equal(0, await r.ReadBlockAsync(Memory<char>.Empty)); in Read_EmptySpan_ReadsNothing()
140 int read = await sr.ReadBlockAsync(dst); in ReadBlockAsync_ReadsExpectedData()
176 Assert.Equal(data.Length, await r.ReadBlockAsync((Memory<char>)result)); in ReadBlockAsync_RepeatsReadsUntilReadDesiredAmount()
187 …await Assert.ThrowsAnyAsync<OperationCanceledException>(() => sr.ReadBlockAsync(Memory<char>.Empty… in ReadAsync_Precanceled_ThrowsException()
200 …await Assert.ThrowsAsync<ObjectDisposedException>(() => sr.ReadBlockAsync(Memory<char>.Empty).AsTa… in Read_SpanMemory_DisposedStream_ThrowsException()
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/Common/src/CoreLib/System/IO/
H A DTextReader.cs274 public virtual Task<int> ReadBlockAsync(char[] buffer, int index, int count) in ReadBlockAsync() method in System.IO.TextReader
292 …public virtual ValueTask<int> ReadBlockAsync(Memory<char> buffer, CancellationToken cancellationTo… in ReadBlockAsync() method in System.IO.TextReader
294 ReadBlockAsync(array.Array, array.Offset, array.Count) : in ReadBlockAsync()
388 public override Task<int> ReadBlockAsync(char[] buffer, int index, int count) in ReadBlockAsync() method in System.IO.TextReader.SyncTextReader
H A DStreamReader.cs1221 public override Task<int> ReadBlockAsync(char[] buffer, int index, int count) in ReadBlockAsync() method in System.IO.StreamReader
1242 return base.ReadBlockAsync(buffer, index, count); in ReadBlockAsync()
1252 Task<int> task = base.ReadBlockAsync(buffer, index, count); in ReadBlockAsync()
1258 …public override ValueTask<int> ReadBlockAsync(Memory<char> buffer, CancellationToken cancellationT… in ReadBlockAsync() method in System.IO.StreamReader
1264 return base.ReadBlockAsync(buffer, cancellationToken); in ReadBlockAsync()
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Runtime.Extensions/src/System/IO/
H A DStringReader.cs225 public override Task<int> ReadBlockAsync(char[] buffer, int index, int count) in ReadBlockAsync() method in System.IO.StringReader
243 …public override ValueTask<int> ReadBlockAsync(Memory<char> buffer, CancellationToken cancellationT… in ReadBlockAsync() method in System.IO.StringReader
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Console/src/System/IO/
H A DSyncTextReader.cs105 public override Task<int> ReadBlockAsync(char[] buffer, int index, int count) in ReadBlockAsync() method in System.IO.SyncTextReader
/dports/lang/mono/mono-5.10.1.57/mcs/class/referencesource/mscorlib/system/io/
H A Dtextreader.cs245 public virtual Task<int> ReadBlockAsync(char[] buffer, int index, int count) in ReadBlockAsync() method in System.IO.TextReader
393 public override Task<int> ReadBlockAsync(char[] buffer, int index, int count) in ReadBlockAsync() method in System.IO.TextReader.SyncTextReader
H A Dstringreader.cs163 public override Task<int> ReadBlockAsync(char[] buffer, int index, int count) in ReadBlockAsync() method in System.IO.StringReader
H A Dstreamreader.cs1103 public override Task<int> ReadBlockAsync(char[] buffer, int index, int count) in ReadBlockAsync() method in System.IO.StreamReader
1118 return base.ReadBlockAsync(buffer, index, count); in ReadBlockAsync()
1125 Task<int> task = base.ReadBlockAsync(buffer, index, count); in ReadBlockAsync()
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.IO/tests/TextReader/
H A DTextReaderTests.cs175 var read = await tr.ReadBlockAsync(chArr, 0, chArr.Length); in ReadBlockAsyncCharArr()
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Runtime.Extensions/ref/
H A DSystem.Runtime.Extensions.cs1399 …public override System.Threading.Tasks.Task<int> ReadBlockAsync(char[] buffer, int index, int coun… in ReadBlockAsync() method in System.IO.StreamReader
1400 …public override System.Threading.Tasks.ValueTask<int> ReadBlockAsync(System.Memory<char> buffer, S… in ReadBlockAsync() method in System.IO.StreamReader
1453 …public override System.Threading.Tasks.Task<int> ReadBlockAsync(char[] buffer, int index, int coun… in ReadBlockAsync() method in System.IO.StringReader
1454 …public override System.Threading.Tasks.ValueTask<int> ReadBlockAsync(System.Memory<char> buffer, S… in ReadBlockAsync() method in System.IO.StringReader
1501 …public virtual System.Threading.Tasks.Task<int> ReadBlockAsync(char[] buffer, int index, int count… in ReadBlockAsync() method in System.IO.TextReader
1502 …public virtual System.Threading.Tasks.ValueTask<int> ReadBlockAsync(System.Memory<char> buffer, Sy… in ReadBlockAsync() method in System.IO.TextReader
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Data.SqlClient/src/System/Data/SqlClient/
H A DTdsParser.cs8963 … nRead = await feed._source.ReadBlockAsync(inBuff, 0, constTextBufferSize).ConfigureAwait(false); in WriteTextFeed()
/dports/lang/mono/mono-5.10.1.57/mcs/class/referencesource/System.Data/System/Data/SqlClient/
H A DTdsParser.cs10338 … nRead = await feed._source.ReadBlockAsync(inBuff, 0, constTextBufferSize).ConfigureAwait(false);
/dports/lang/mono/mono-5.10.1.57/external/binary-reference-assemblies/src/v4.6.1/
H A Dmscorlib.cs9127 …public override System.Threading.Tasks.Task<int> ReadBlockAsync(char[] buffer, int index, int coun… in ReadBlockAsync() method in System.IO.StreamReader
9199 …public override System.Threading.Tasks.Task<int> ReadBlockAsync(char[] buffer, int index, int coun… in ReadBlockAsync() method in System.IO.StringReader
9263 …public virtual System.Threading.Tasks.Task<int> ReadBlockAsync(char[] buffer, int index, int count… in ReadBlockAsync() method in System.IO.TextReader
/dports/lang/mono/mono-5.10.1.57/external/binary-reference-assemblies/src/v4.6/
H A Dmscorlib.cs9127 …public override System.Threading.Tasks.Task<int> ReadBlockAsync(char[] buffer, int index, int coun… in ReadBlockAsync() method in System.IO.StreamReader
9199 …public override System.Threading.Tasks.Task<int> ReadBlockAsync(char[] buffer, int index, int coun… in ReadBlockAsync() method in System.IO.StringReader
9263 …public virtual System.Threading.Tasks.Task<int> ReadBlockAsync(char[] buffer, int index, int count… in ReadBlockAsync() method in System.IO.TextReader
/dports/lang/mono/mono-5.10.1.57/external/binary-reference-assemblies/src/v4.5.1/
H A Dmscorlib.cs8947 …public override System.Threading.Tasks.Task<int> ReadBlockAsync(char[] buffer, int index, int coun… in ReadBlockAsync() method in System.IO.StreamReader
9019 …public override System.Threading.Tasks.Task<int> ReadBlockAsync(char[] buffer, int index, int coun… in ReadBlockAsync() method in System.IO.StringReader
9083 …public virtual System.Threading.Tasks.Task<int> ReadBlockAsync(char[] buffer, int index, int count… in ReadBlockAsync() method in System.IO.TextReader
/dports/lang/mono/mono-5.10.1.57/external/binary-reference-assemblies/src/monotouch/
H A Dmscorlib.cs9356 …public override System.Threading.Tasks.Task<int> ReadBlockAsync(char[] buffer, int index, int coun… in ReadBlockAsync() method in System.IO.StreamReader
9428 …public override System.Threading.Tasks.Task<int> ReadBlockAsync(char[] buffer, int index, int coun… in ReadBlockAsync() method in System.IO.StringReader
9492 …public virtual System.Threading.Tasks.Task<int> ReadBlockAsync(char[] buffer, int index, int count… in ReadBlockAsync() method in System.IO.TextReader
/dports/lang/mono/mono-5.10.1.57/external/api-snapshot/profiles/monotouch/
H A Dmscorlib.cs9457 …public override System.Threading.Tasks.Task<int> ReadBlockAsync(char[] buffer, int index, int coun… in ReadBlockAsync() method in System.IO.StreamReader
9529 …public override System.Threading.Tasks.Task<int> ReadBlockAsync(char[] buffer, int index, int coun… in ReadBlockAsync() method in System.IO.StringReader
9593 …public virtual System.Threading.Tasks.Task<int> ReadBlockAsync(char[] buffer, int index, int count… in ReadBlockAsync() method in System.IO.TextReader
/dports/lang/mono/mono-5.10.1.57/external/binary-reference-assemblies/src/v4.5.2/
H A Dmscorlib.cs8947 …public override System.Threading.Tasks.Task<int> ReadBlockAsync(char[] buffer, int index, int coun… in ReadBlockAsync() method in System.IO.StreamReader
9019 …public override System.Threading.Tasks.Task<int> ReadBlockAsync(char[] buffer, int index, int coun… in ReadBlockAsync() method in System.IO.StringReader
9083 …public virtual System.Threading.Tasks.Task<int> ReadBlockAsync(char[] buffer, int index, int count… in ReadBlockAsync() method in System.IO.TextReader
/dports/lang/mono/mono-5.10.1.57/external/binary-reference-assemblies/src/v4.5/
H A Dmscorlib.cs8939 …public override System.Threading.Tasks.Task<int> ReadBlockAsync(char[] buffer, int index, int coun… in ReadBlockAsync() method in System.IO.StreamReader
9011 …public override System.Threading.Tasks.Task<int> ReadBlockAsync(char[] buffer, int index, int coun… in ReadBlockAsync() method in System.IO.StringReader
9075 …public virtual System.Threading.Tasks.Task<int> ReadBlockAsync(char[] buffer, int index, int count… in ReadBlockAsync() method in System.IO.TextReader
/dports/lang/mono/mono-5.10.1.57/external/binary-reference-assemblies/src/v4.6.2/
H A Dmscorlib.cs9135 …public override System.Threading.Tasks.Task<int> ReadBlockAsync(char[] buffer, int index, int coun… in ReadBlockAsync() method in System.IO.StreamReader
9207 …public override System.Threading.Tasks.Task<int> ReadBlockAsync(char[] buffer, int index, int coun… in ReadBlockAsync() method in System.IO.StringReader
9271 …public virtual System.Threading.Tasks.Task<int> ReadBlockAsync(char[] buffer, int index, int count… in ReadBlockAsync() method in System.IO.TextReader
/dports/lang/mono/mono-5.10.1.57/external/api-snapshot/profiles/net_4_x/
H A Dmscorlib.cs9524 …public override System.Threading.Tasks.Task<int> ReadBlockAsync(char[] buffer, int index, int coun… in ReadBlockAsync() method in System.IO.StreamReader
9596 …public override System.Threading.Tasks.Task<int> ReadBlockAsync(char[] buffer, int index, int coun… in ReadBlockAsync() method in System.IO.StringReader
9660 …public virtual System.Threading.Tasks.Task<int> ReadBlockAsync(char[] buffer, int index, int count… in ReadBlockAsync() method in System.IO.TextReader
/dports/lang/mono/mono-5.10.1.57/external/binary-reference-assemblies/src/monodroid/
H A Dmscorlib.cs9385 …public override System.Threading.Tasks.Task<int> ReadBlockAsync(char[] buffer, int index, int coun… in ReadBlockAsync() method in System.IO.StreamReader
9457 …public override System.Threading.Tasks.Task<int> ReadBlockAsync(char[] buffer, int index, int coun… in ReadBlockAsync() method in System.IO.StringReader
9521 …public virtual System.Threading.Tasks.Task<int> ReadBlockAsync(char[] buffer, int index, int count… in ReadBlockAsync() method in System.IO.TextReader
/dports/lang/mono/mono-5.10.1.57/external/api-snapshot/profiles/monodroid/
H A Dmscorlib.cs9486 …public override System.Threading.Tasks.Task<int> ReadBlockAsync(char[] buffer, int index, int coun… in ReadBlockAsync() method in System.IO.StreamReader
9558 …public override System.Threading.Tasks.Task<int> ReadBlockAsync(char[] buffer, int index, int coun… in ReadBlockAsync() method in System.IO.StringReader
9622 …public virtual System.Threading.Tasks.Task<int> ReadBlockAsync(char[] buffer, int index, int count… in ReadBlockAsync() method in System.IO.TextReader

12