Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileBuffer ¶
type FileBuffer struct {
// contains filtered or unexported fields
}
func NewFileBuffer ¶
func NewFileBuffer(max int, temp string) *FileBuffer
NewFileBuffer returns a file buffer which will use an in-memory buffer, until `max` bytes have been written, at which point it will write the contents of memory to a file, and continue writing future data to the file. The file will be written to `temp` directory. The buffer fulfills the io.Reader and io.Writer interface
func (*FileBuffer) Close ¶
func (fb *FileBuffer) Close() error
func (*FileBuffer) Len ¶
func (fb *FileBuffer) Len() (int64, error)
func (*FileBuffer) Reset ¶
func (fb *FileBuffer) Reset() error
Click to show internal directories.
Click to hide internal directories.