<PackageReference Include="Microsoft.Azure.Storage.File" Version="11.1.7" />

Microsoft.Azure.Storage.File.FileReadStreamBase

abstract class FileReadStreamBase : Stream
protected AccessCondition accessCondition

protected long currentOffset

protected CloudFile file

protected ChecksumWrapper fileChecksum

protected MultiBufferMemoryStream internalBuffer

protected OperationContext operationContext

protected FileReadStreamBase(CloudFile file, AccessCondition accessCondition, FileRequestOptions options, OperationContext operationContext)

Initializes a new instance of the FileReadStreamBase class.

protected int ConsumeBuffer(byte[] buffer, int offset, int count)

Read as much as we can from the internal buffer

protected int GetReadSize()

Calculates the number of bytes to read from the file.

protected void VerifyFileChecksum(byte[] buffer, int offset, int count)

Updates the file checksum with newly downloaded content.