/// <summary> /// Read the specified number (or less) of raw bytes from the base stream to the given buffer /// </summary> /// <param name="buffer"></param> /// <param name="bytesToRead"></param> /// <returns>The number of bytes read</returns> public Task <int> ReadBytesAsync(byte[] buffer, int bytesToRead) { return(stream.ReadAsync(buffer, 0, bytesToRead)); }
Task <int> IBufferedStream.ReadAsync(byte[] buffer, int offset, int count) { return(baseStream.ReadAsync(buffer, offset, count)); }