<PackageReference Include="Azure.Storage.Blobs" Version="12.25.1" />

LazyLoadingReadOnlyStream<TProperties>

class LazyLoadingReadOnlyStream<TProperties> : Stream
Used for Open Read APIs.
public sealed delegate DownloadInternalAsync<TProperties> : MulticastDelegate

Delegate for a resource's direct REST download method.

public sealed delegate GetPropertiesAsync<TProperties> : MulticastDelegate

Delegate for getting properties for the target resource.

public sealed delegate PredictEncryptedRangeAdjustment<TProperties> : MulticastDelegate

Delegate to replicate how a client will alter the download range. Used to avoid requesting blob ranges that will result in error after transformation.

public static PredictEncryptedRangeAdjustment<TProperties> NoRangeAdjustment { get; }

No-op for range adjustment.

public LazyLoadingReadOnlyStream(DownloadInternalAsync<TProperties> downloadInternalFunc, GetPropertiesAsync<TProperties> getPropertiesFunc, DownloadTransferValidationOptions transferValidation, bool allowModifications, long initialLength, long position = 0, int? bufferSize = default, PredictEncryptedRangeAdjustment<TProperties> rangePredictionFunc = null)

public Task<int> ReadInternal(byte[] buffer, int offset, int count, bool async, CancellationToken cancellationToken)