// DownloadToStreamByName downloads the file with the given name to the given io.Writer.
//
// If this download requires a custom read deadline to be set on the bucket, it cannot be done concurrently with other
// read operations operations on this bucket that also require a custom deadline.
DownloadToStreamByName downloads the file with the given name to the given io.Writer.

If this download requires a custom read deadline to be set on the bucket, it cannot be done concurrently with other
read operations operations on this bucket that also require a custom deadline.
// DownloadToStreamByName downloads the file with the given name to the given io . Writer . // // If this download requires a custom read deadline to be set on the bucket it cannot be done concurrently with other // read operations operations on this bucket that also require a custom deadline .
func (b *Bucket) DownloadToStreamByName(filename string, stream io.Writer, opts ...*options.NameOptions) (int64, error) {
	ds, err := b.OpenDownloadStreamByName(filename, opts...)
	if err != nil {
		return 0, err
	}
	return b.downloadToStream(ds, stream)
}
func ( b * Bucket ) DownloadToStreamByName ( filename string , stream io . Writer , opts ... * options . NameOptions ) ( int64 , error ) { ds , err := b . OpenDownloadStreamByName ( filename , opts ... ) if err != nil { return 0 , err } return b . downloadToStream ( ds , stream ) }
DownloadToStreamByName downloads the file with the given name to the given io.Writer.
DownloadToStreamByName downloads the file with the given name to the given io . Writer .