Documentation
¶
Index ¶
- type BufferedStream
- func (h *BufferedStream) BufferAll()
- func (h *BufferedStream) BufferingProgress() float64
- func (h *BufferedStream) Close() error
- func (h *BufferedStream) Error() error
- func (h *BufferedStream) IsBuffered() bool
- func (h *BufferedStream) IsDone() bool
- func (h *BufferedStream) Length() int64
- func (h *BufferedStream) Progress() float64
- func (h *BufferedStream) Read(dest []byte) (n int, err error)
- func (h *BufferedStream) Seek(offset int64, whence int) (pos int64, err error)
- func (h *BufferedStream) WriteTo(dest io.Writer) (int64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BufferedStream ¶
type BufferedStream struct {
// contains filtered or unexported fields
}
func NewBufferedStream ¶
func NewBufferedStream(source io.ReadCloser, totalSize int64) *BufferedStream
func (*BufferedStream) BufferAll ¶
func (h *BufferedStream) BufferAll()
func (*BufferedStream) BufferingProgress ¶
func (h *BufferedStream) BufferingProgress() float64
func (*BufferedStream) Close ¶
func (h *BufferedStream) Close() error
func (*BufferedStream) Error ¶
func (h *BufferedStream) Error() error
func (*BufferedStream) IsBuffered ¶
func (h *BufferedStream) IsBuffered() bool
func (*BufferedStream) IsDone ¶
func (h *BufferedStream) IsDone() bool
func (*BufferedStream) Length ¶
func (h *BufferedStream) Length() int64
func (*BufferedStream) Progress ¶
func (h *BufferedStream) Progress() float64
Click to show internal directories.
Click to hide internal directories.