large

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RemoveSuccess = iota
	RemoveAll
	RemoveRefresh
)

Variables

View Source
var ALLOC_SIZE = 4096

Functions

This section is empty.

Types

type Buffer

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

func NewBuffer

func NewBuffer(r io.Reader) *Buffer

func (*Buffer) Fetch

func (b *Buffer) Fetch() error

func (*Buffer) Len

func (b *Buffer) Len() int64

func (*Buffer) ReadAll

func (b *Buffer) ReadAll()

func (*Buffer) WriteTo

func (b *Buffer) WriteTo(w io.Writer) (int64, error)

type Pointer

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

func NewPointer

func NewPointer(b *Buffer) *Pointer

func NewPointerAt

func NewPointerAt(at int64, b *Buffer) *Pointer

func (*Pointer) Address

func (p *Pointer) Address() int64

func (*Pointer) Append

func (p *Pointer) Append(value byte)

func (Pointer) AppendSpace

func (p Pointer) AppendSpace(size int) []byte

func (*Pointer) Clone

func (p *Pointer) Clone() *Pointer

func (*Pointer) GoEndOfFile

func (p *Pointer) GoEndOfFile()

func (*Pointer) Insert

func (p *Pointer) Insert(value byte)

func (*Pointer) InsertSpace

func (p *Pointer) InsertSpace(size int) []byte

func (*Pointer) Next

func (p *Pointer) Next() error

func (*Pointer) Prev

func (p *Pointer) Prev() error

func (*Pointer) Remove

func (p *Pointer) Remove() int

func (*Pointer) RemoveSpace

func (p *Pointer) RemoveSpace(space int)

func (*Pointer) Rewind

func (p *Pointer) Rewind(n int64) error

func (*Pointer) SetValue

func (p *Pointer) SetValue(value byte)

func (*Pointer) Skip

func (p *Pointer) Skip(n int64) error

func (*Pointer) Value

func (p *Pointer) Value() byte

Jump to

Keyboard shortcuts

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