18 : base(null,
state, callback)
29 _parent._storedOffset +=
_read;
50 return readAsyncResult.
_read;
89 : this(
stream, readMore: false)
103 return readAsyncResult;
141 return Task.FromResult(num);
159 return base.ReadByte();
static void BlockCopy(Array src, int srcOffset, Array dst, int dstOffset, int count)
virtual IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback? callback, object? state)
virtual int EndRead(IAsyncResult asyncResult)
static byte Min(byte val1, byte val2)
void Read(byte[] buffer, int offset, int count)
static readonly AsyncCallback s_onRead
static int End(IAsyncResult result)
readonly BufferedReadStream _parent
ReadAsyncResult(BufferedReadStream parent, AsyncCallback callback, object state)
static void OnRead(IAsyncResult result)
override int Read(byte[] buffer, int offset, int count)
override Task< int > ReadAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
void Push(byte[] buffer, int offset, int count)
BufferedReadStream(Stream stream)
override int EndRead(IAsyncResult asyncResult)
BufferedReadStream(Stream stream, bool readMore)
override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback callback, object state)
async Task< int > ReadMoreAsync(int bytesAlreadyRead, byte[] buffer, int offset, int count, CancellationToken cancellationToken)
object InternalWaitForCompletion()
void InvokeCallback(object result)
new ConfiguredTaskAwaitable< TResult > ConfigureAwait(bool continueOnCapturedContext)
bool CompletedSynchronously