Documentation ¶
Index ¶
- type Buffer
- func (b *Buffer) Clone() *Buffer
- func (b *Buffer) Copy(start, end int64) *Buffer
- func (b *Buffer) Cut(start, end int64)
- func (b *Buffer) Delete(offset int64)
- func (b *Buffer) EditedIndices() []int64
- func (b *Buffer) Flush()
- func (b *Buffer) Insert(offset int64, c byte)
- func (b *Buffer) Len() (int64, error)
- func (b *Buffer) Paste(offset int64, c *Buffer)
- func (b *Buffer) Read(p []byte) (int, error)
- func (b *Buffer) ReadAt(p []byte, offset int64) (int, error)
- func (b *Buffer) Replace(offset int64, c byte)
- func (b *Buffer) ReplaceIn(start, end int64, c byte)
- func (b *Buffer) Seek(offset int64, whence int) (int64, error)
- func (b *Buffer) UndoReplace(offset int64)
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
}
Buffer represents a buffer.
func (*Buffer) EditedIndices ¶
EditedIndices returns the indices of edited regions.
func (*Buffer) Replace ¶
Replace replaces a byte at the specific position. This method does not overwrite the reader ranges, but just append the byte to the temporary byte slice in order to cancel the replacement with backspace key.
func (*Buffer) UndoReplace ¶
UndoReplace removes the last byte of the replacing byte slice.
Click to show internal directories.
Click to hide internal directories.