Documentation
¶
Index ¶
- Variables
- func DefaultBufferSize() int
- type Buf
- func (b *Buf) Close() (err error)
- func (b *Buf) Flush() (err error)
- func (b *Buf) Len() int
- func (b *Buf) LenInt64() int64
- func (b *Buf) Offset() int64
- func (b *Buf) Read(data []byte) (n int, err error)
- func (b *Buf) Seek(offset int64, whence int) (int64, error)
- func (b *Buf) Size() (int64, error)
- func (b *Buf) SwitchToRead() (err error)
- func (b *Buf) SwitchToWrite() (err error)
- func (b *Buf) Truncate(n int64) (err error)
- func (b *Buf) Write(data []byte) (int, error)
- func (b *Buf) WriteString(data string) (int, error)
- type ProcessorReadHandler
- type ProcessorWriteHandler
- type Reader
- type Writer
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrTooLarge = errors.New("filebuf: Out of free memory")
Functions ¶
func DefaultBufferSize ¶
func DefaultBufferSize() int
Types ¶
type Buf ¶
type Buf struct {
// contains filtered or unexported fields
}
func (*Buf) SwitchToRead ¶
func (*Buf) SwitchToWrite ¶
type ProcessorReadHandler ¶
type ProcessorReadHandler func(r io.Reader) (io.ReadCloser, error)
type Reader ¶
func BufferReader ¶
func BufferReader(r io.Reader, processor ProcessorReadHandler) (*Reader, error)
Click to show internal directories.
Click to hide internal directories.