fancy

package
v0.0.0-...-ba91185 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2016 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Enhanced input.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadAll

func ReadAll(f io.Reader) []byte

func ReadAndClose

func ReadAndClose(f io.ReadCloser, err error) []byte

Types

type Reader

type Reader interface {
	ReadAt(buf []byte, pos int64) (n int, err error)
	Read(b []byte) (n int, err error)
	Slice(n int) []byte
	Seek(off int64, whence int) (ret int64, err error)
	ReadByte() (c byte, err error)
	UnreadByte() error
	Size() int64
}

func FileReader

func FileReader(fn string) Reader

func SecReader

func SecReader(f io.ReaderAt, size int64) Reader

func SliceReader

func SliceReader(bin []byte) Reader

type SecReaderT

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

func (*SecReaderT) Read

func (sr *SecReaderT) Read(b []byte) (n int, err error)

func (*SecReaderT) ReadAt

func (sr *SecReaderT) ReadAt(buf []byte, pos int64) (n int, err error)

func (*SecReaderT) ReadByte

func (sr *SecReaderT) ReadByte() (c byte, err error)

func (*SecReaderT) ReadBytes

func (sr *SecReaderT) ReadBytes(delim byte) ([]byte, error)

grmpf: Next is for AUTOGENERATE! The thing here is only (!) for convenience.

func (*SecReaderT) Seek

func (sr *SecReaderT) Seek(off int64, whence int) (ret int64, err error)

func (*SecReaderT) Size

func (sr *SecReaderT) Size() int64

func (*SecReaderT) Slice

func (sr *SecReaderT) Slice(n int) []byte

func (*SecReaderT) UnreadByte

func (sr *SecReaderT) UnreadByte() error

type SliceReaderT

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

func (*SliceReaderT) Read

func (sl *SliceReaderT) Read(b []byte) (n int, err error)

func (*SliceReaderT) ReadAt

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

func (*SliceReaderT) ReadByte

func (sl *SliceReaderT) ReadByte() (c byte, err error)

func (*SliceReaderT) ReadBytes

func (sl *SliceReaderT) ReadBytes(delim byte) ([]byte, error)

grmpf: Next is for AUTOGENERATE! The thing here is only (!) for convenience.

func (*SliceReaderT) Seek

func (sl *SliceReaderT) Seek(off int64, whence int) (ret int64, err error)

func (*SliceReaderT) Size

func (sl *SliceReaderT) Size() int64

func (*SliceReaderT) Slice

func (sl *SliceReaderT) Slice(n int) []byte

func (*SliceReaderT) UnreadByte

func (sl *SliceReaderT) UnreadByte() error

Jump to

Keyboard shortcuts

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