Documentation ¶
Overview ¶
Package for efficient editing operations on big files
Index ¶
- type Buffer
- func (fb *Buffer) Copy(offset int64, size int64) *Buffer
- func (fb *Buffer) Cut(offset int64, size int64) *Buffer
- func (fb *Buffer) Dump(out io.Writer)
- func (fb *Buffer) Insert(offset int64, bs []byte) error
- func (fb *Buffer) Insert1(offset int64, b byte) error
- func (fb *Buffer) Iter(cb func([]byte) bool)
- func (fb *Buffer) IterFrom(from int64, cb func([]byte) bool)
- func (fb *Buffer) Paste(offset int64, paste *Buffer)
- func (fb *Buffer) Read(p []byte) (int, error)
- func (fb *Buffer) Remove(offset int64, size int64)
- func (fb *Buffer) Seek(offset int64, whence int) (int64, error)
- func (fb *Buffer) Size() int64
- func (fb *Buffer) Write(p []byte) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Buffer ¶
type Buffer struct {
// contains filtered or unexported fields
}
implements io.ReadWriteSeeker
func OpenFile ¶
Open file 'f' as source for a filebuffer As long as you are using buffers predicated on 'f', you probably shouldn't change the file on disk
Click to show internal directories.
Click to hide internal directories.