bio

package
v0.0.0-...-22430d5 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2016 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SlotSize = 8
)

Variables

View Source
var (
	ErrFileClosed        = logex.Define("file is closed")
	ErrFileInvalidBit    = logex.Define("invalid bit")
	ErrFileInvalidOffset = logex.Define("invalid offset")
)

Functions

This section is empty.

Types

type File

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

func NewFile

func NewFile(path string) (*File, error)

func NewFileEx

func NewFileEx(root string, bit uint) (*File, error)

func (*File) Close

func (f *File) Close() error

func (*File) Delete

func (f *File) Delete(close bool) error

func (*File) ReadAt

func (f *File) ReadAt(b []byte, off int64) (n int, err error)

func (*File) WriteAt

func (f *File) WriteAt(b []byte, off int64) (n int, err error)

type Hybrid

type Hybrid struct {
	ReadWriterAt
	// contains filtered or unexported fields
}

func NewHybrid

func NewHybrid(rw ReadWriterAt, blkbit uint) *Hybrid

func (*Hybrid) ReadData

func (h *Hybrid) ReadData(off int64, n int) ([]byte, error)

type Mem

type Mem struct {
}

type ReadWriterAt

type ReadWriterAt interface {
	ReadAt(b []byte, off int64) (int, error)
	WriteAt(b []byte, off int64) (int, error)
}

Jump to

Keyboard shortcuts

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