bio

package
v0.0.0-...-285e786 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2016 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package bio implements seekable buffered I/O.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reader

type Reader struct {
	*bufio.Reader
	// contains filtered or unexported fields
}

Reader implements a seekable buffered io.Reader.

func Open

func Open(name string) (*Reader, error)

Open returns a Reader for the file named name.

func (*Reader) Close

func (r *Reader) Close() error

func (*Reader) Offset

func (r *Reader) Offset() int64

func (*Reader) Seek

func (r *Reader) Seek(offset int64, whence int) int64

type Writer

type Writer struct {
	*bufio.Writer
	// contains filtered or unexported fields
}

Writer implements a seekable buffered io.Writer.

func Create

func Create(name string) (*Writer, error)

Create creates the file named name and returns a Writer for that file.

func (*Writer) Close

func (w *Writer) Close() error

func (*Writer) Offset

func (w *Writer) Offset() int64

func (*Writer) Seek

func (w *Writer) Seek(offset int64, whence int) int64

Jump to

Keyboard shortcuts

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