reader

package
v0.0.0-...-69e45e2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 24, 2015 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Resettable

type Resettable struct {
	// contains filtered or unexported fields
}

ボディを読みながら保存しとく機構

func NewResettable

func NewResettable(base io.ReadCloser, memMax int, filePref string, fileMax int) *Resettable

読み込み量が memMax + fileMax を超えたら、リセットできない。

func (*Resettable) Close

func (this *Resettable) Close() error

func (*Resettable) Dispose

func (this *Resettable) Dispose()

廃棄する。

func (*Resettable) LastReset

func (this *Resettable) LastReset() error

最後の 1 回。

func (*Resettable) Read

func (this *Resettable) Read(p []byte) (n int, err error)

func (*Resettable) Reset

func (this *Resettable) Reset() error

また頭から読めるようにする。

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL