Struct: s3manager.BufferedReadSeekerWriteTo

import "../ibm-cos-sdk-go/service/s3/s3manager"

Overview

BufferedReadSeekerWriteTo wraps a BufferedReadSeeker with an io.WriteAt implementation.

Implemented Interfaces

s3crypto.Cipher, s3manager.ReadSeekerWriteTo, s3manager.WriterReadFrom

Method Summary collapse

Methods included from s3manager.BufferedReadSeeker

s3manager.BufferedReadSeeker.Read(), s3manager.BufferedReadSeeker.ReadAt(), s3manager.BufferedReadSeeker.Seek()

Method Details

func (b *BufferedReadSeekerWriteTo) WriteTo(writer io.Writer) (int64, error)

WriteTo writes to the given io.Writer from BufferedReadSeeker until there's no more data to write or an error occurs. Returns the number of bytes written and any error encountered during the write.



21
22
23
// File 'service/s3/s3manager/read_seeker_write_to.go', line 21

func (b *BufferedReadSeekerWriteTo) WriteTo(writer io.Writer) (int64, error) { return io.Copy(writer, b.BufferedReadSeeker) }